C++輸入總結

總結下在編程題中的輸入數據方法 #include <iostream> using namespace std; int main(){ int n; cin>>n; string s; // 注意,在VS中這裏會報錯,需要添加 #include<string> // 因爲在iostream裏,對string只是聲明,並沒有定義。 cin>>s;
相關文章
相關標籤/搜索