Ryanlyt / algorithm-learning

The firse
0 stars 0 forks source link

9.8 #1

Open Ryanlyt opened 1 year ago

Ryanlyt commented 1 year ago

include <bits/stdc++.h>

万能头文件

vector empty() back() push_back()

for(auto &i : str) for(auto &i : vec)

输入输出 getline(cin, str)

str.length() str.size()

cpp中''和""不同,一个是char,一个是string

istringstream isstr(str); string tmp; while(isstr >> tmp){ vec.push_back(atoi(tmp.c_str())); }