2014年7月10日 星期四

讀入含空白的字串

#include <iostream>
#include <string>
using namespace std;
int main () {
  string name;
  getline(cin, name);
  std::cout << name ;
  system("pause");
  return 0;
}

沒有留言:

張貼留言