I want to pass a 2d int array into a main function.
Since the main function signature is like this
int main(int argc, char*argv[]
How can I get the 2d array into a int[][] in my code?
Command line:
myprogram {{2,3},{5,6},{4,5},{6,8},{2,5}}
This:
{{2,3},{5,6},{4,5},{6,8},{2,5}}will end up as a string in your program. You will need to break it up into pieces yourself to turn it into an array of arrays.