Menu

#648 Error string display in console.

open
nobody
None
5
2012-09-26
2006-08-19
Anonymous
No

when choose "Compile & Run" command from menu
and run following code in a simple main method
/
char
array = new char[30];
memset(array,'s', 8);
cout << array <<endl;
delete [] array;
system("PAUSE");
*/

The console display following
message "ssssssssTH=\Documents and Settin"

But if I run compiled exe file outside Dev C++,the
console will display "ssssssss" which is right for
this code.

And my project type is Console Application, it's a
very simple project contains only one cpp file and the
above code in a main method.

Discussion


Log in to post a comment.