here is the input file
[input]
hello;world cse340 asu 2013/05/31 // end
boolean $xx= ((((((((23WE + 44 - 3 / 2 % 45 <=17) > 34.45;
"hello23.1 '-)">-''' //this is an error!
(1 + 09 // "it is ok"
'\a' = 'a'
[/input]
The first line is executing properly but when it goes to the second line I get an error "the program has stopped working"
Please look into it
Thanks in advance
you are reserving memory for just one character, so `strcpy()' will write out of bounds.
It should be char *a = newchar[ line.length() ];, ¿but what is the purpose of that copy? ¿and why do you prefer to leak memory instead of using `std::string' ?