Any way I have a problem in it that I need help in. It has too deal with arrays and passing them through arguments. I found the current page which I looked at http://www-control.eng.cam.ac.uk/~pcr20/C_Manual/chap07.html. Maybe you might want to take a look at it any way it explains arrays.
So to my problem,
void GetArguments(int,int,char ARG[][len]);
int len = strlen(strvariable);
char ARG[12][len];
GetArguments(0,30,ARG);
void GetArguments(int invalue,int maxvalue,char ARG[][len]){
...
}
Right the error is this "parameter may not have variably modified type `char[][((len - 1) + 1)]'".
So this error means you can't have the variable len in the ending bracket. At least thats what I think I got from the website. Any way I think your suppose to put a number in the ending bracket. But I cant do that cause I need len to tell me the size. But I dont know len intell runtime.
Well what I thought of doing was making it ARG[x][y][0] so there is allways a number at the end of the array. But that seems like to much over kill. What are your thoughts on my problem?
Thanks for any help!
I'm not sure of the syntax involved with passing data through parameters as arrays. I just pass them through as a pointer along with information on the array size(if needed).