Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#include <iostream> using namespace std; int main() { string s; cin >> s; cout << "Hello World!"; }
这是行不通的。为什么?
因为你忘了#include <string>
#include <string>
你应该#include <string>