c++ - How to get a 2d int array from a char*? -
i want pass 2d int array main function. since main function signature int main(int argc, char*argv[]
how can 2d array int[][]
in 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}}
end string in program. need break pieces turn array of arrays.
Comments
Post a Comment