没有人用STL吗?
查看原帖
没有人用STL吗?
1430942
qiaohaoran123楼主2024/10/21 21:09
#include<iostream>
#include<vector>
using namespace std;
int main(){
	vector<char>a;
	char b;
	while(cin>>b){
		a.push_back(b);
	}
	cout<<a.size();
	return 0;
}

这就是STL的简单

2024/10/21 21:09
加载中...