Quote:
Originally Posted by psrujan
#3 0x08048b26 in main (argc=2, argv=0xbfb64324) at groute.cpp:140
140 n=atoi(argv[2]); // mxn layout
Its giving error for n but not m.. i dont know why
|
Are you setting up the program arguments before you run it it?
If you give atoi a rubbish pointer it will trap.
Print out argc and argv before this traps.