Open JianmingJin opened 3 years ago
For the simple C++ code, G++ display error message of " segmentation fault".
using namespace std; int main() { string s; cin >> s; cout << s; return 0; }
However, initialize "s" as an empty string , the compile result is OK. I am very appreciate if anyone can help to solve the problem.
For the simple C++ code, G++ display error message of " segmentation fault".
include
include
using namespace std; int main() { string s; cin >> s; cout << s; return 0; }
However, initialize "s" as an empty string , the compile result is OK. I am very appreciate if anyone can help to solve the problem.