C++复制粘贴代码去行标
作者:互联网
抄代码专用
#include<iostream> #include<string> using namespace std; int main(){ freopen("qwq.cpp","r",stdin); freopen("std.cpp","w",stdout); string s; while(getline(cin,s)){ int i; for(i = 0; i < s.size(); i++){ if(s[i]==' ')continue; if(s[i]<'0'||s[i]>'9')break; } cout<<(s.substr(i,s.size()-i+1))<<'\n'; } return 0; }
标签:std,行标,int,代码,C++,复制粘贴,freopen,cpp,include 来源: https://www.cnblogs.com/gwj13114/p/15556211.html