#include<iostream>
#include<stdio.h>
#include<string>
#include<string.h>
#include<algorithm>
using namespace std;
int main(){
char all[30]="aa,bb..d";
const char *a=",.";
char *c;
char *d;
c=strtok(all,a);
while(c!=NULL){
d=c;
reverse(d,d+strlen(d));
cout<<d<<" ";
c=strtok(NULL,a);
}
}
分割字符串
最新推荐文章于 2023-04-05 14:47:51 发布