Ok the output is supposed to look like this:
./a 3 4 8 2 3 4 8 2
This is what I have so far, but I am lost and can only get the first integer to print (we have to use GetInt, which gets the specified integer in the string):
int main (int argc, char*argv []){ int v; int i; i = 1; v = GetInt(argc, argv, i + 1); if(argc >= 1){ printf('%d\n', GetInt(argc, argv, i)); } return 0; }
Without actually seeing your implementation of GetInt, something like this (Assumes C90):
Returns:
Error checking omitted and such. It is an exercise to you to figure out how to deal with non-decimal arguments.