用来清除某模板前面恶心的数字。。。
作者:互联网
#include <bits/stdc++.h> using namespace std; #define ll long long #define inf 0x3f3f3f3f #define N 2000 int main(){ ofstream outfile; outfile.open("out.txt"); string sss; while(1){ getline(cin,sss); stringstream ss(sss); string tmp; ss>>tmp; while(!ss.eof()){ ss>>tmp; cout<<' '<<tmp; outfile<<' '<<tmp; } cout<<'\n'; outfile<<'\n'; }return 0; }
标签:tmp,恶心,ss,清除,sss,while,long,模板,define 来源: https://www.cnblogs.com/guanwen769aaaa/p/11436614.html