19
#include <iostream>

using namespace std;

int main() {
    string s;
    cin >> s;
    cout << "Hello World!";
}

这是行不通的。为什么?

4

2 回答 2

58

因为你忘了#include <string>

于 2011-03-17T17:46:39.387 回答
9

你应该#include <string>

于 2011-03-17T17:48:09.900 回答