?? split_main.cpp
字號:
#include <cctype>
#include <iostream>
#include <string>
#include <vector>
#include "split.h"
using std::cin;
using std::cout;
using std::endl;
using std::getline;
using std::string;
using std::vector;
#ifndef _MSC_VER
using std::isspace;
#endif
int main()
{
string s;
// read and split each line of input
while (getline(cin, s)) {
vector<string> v = split(s);
// write each word in `v'
#ifdef _MSC_VER
for (std::vector<string>::size_type i = 0; i != v.size(); ++i)
#else
for (vector<string>::size_type i = 0; i != v.size(); ++i)
#endif
cout << v[i] << endl;
}
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -