0
#include <string> using namespace std; int main() { string a = "I am learning C++"; return 0; } why it has no op?
?
2 ответов
+ 9
You declared a string, but did not output the string. In C++, you'll need the <iostream> header to handle IO.
#include <iostream>
Try printing the string after declaring and initializing it.
string a = "I am learning C++";
cout << a;
0
Thanks