toasterrowster
Programmer
Hi,
I have written a function that returns a two dimensional array. For some reason my compiler keeps telling me that my routine has been "called with different number and/or type of actual arguments in earlier call..."
I have double checked and I have made sure that the number and types are the same in my call to the function.
Do I have to give a dimension to the array that im assigning the function to? I tried this and the compiler doesnt seem to like it.
The only way I could get it to work would be to add a extra arguement in my call to the function that had the same name as the function? does this make sense? It gets the program to compile, but when I run it, I get an array out of bounds error. I have even copied examples of array valued functions from text books into my program and my compiler still complains about the number or type of arguements. Is it a compiler setting?
Any help would be great....Thanks alot.
Rowan
I have written a function that returns a two dimensional array. For some reason my compiler keeps telling me that my routine has been "called with different number and/or type of actual arguments in earlier call..."
I have double checked and I have made sure that the number and types are the same in my call to the function.
Do I have to give a dimension to the array that im assigning the function to? I tried this and the compiler doesnt seem to like it.
The only way I could get it to work would be to add a extra arguement in my call to the function that had the same name as the function? does this make sense? It gets the program to compile, but when I run it, I get an array out of bounds error. I have even copied examples of array valued functions from text books into my program and my compiler still complains about the number or type of arguements. Is it a compiler setting?
Any help would be great....Thanks alot.
Rowan