随笔分类 - 字符串
摘要:char s[]="qwery tu ii op";char *p=strtok(s," ");while(p!=NULL){cout<<p<<endl;p=strtok(NULL," ");}以" "截取字符串,第一次赋值的时候必须写上原字符串,后面则不需要赋值如果要把字符串转化成整型,则需要at...
阅读全文
摘要:可以在string 后直接追加标识符 另外是数组#include#includeusing namespace std; int main(){ int n; cin>>n; string str; while(n--){ int c[10000]={};...
阅读全文

浙公网安备 33010602011771号