string s;
isalnum()//判断是否是字母
tolower()//转换为小写
toupper()//转换成大写
s.insert(0,"hello");
getchar()//吸收换行
string s;
string str[1005];
stringstream ss(s);
int i=0;
while(ss>>s)
{
str[i++]=s;
}
字符串总结
最新推荐文章于 2022-04-08 20:59:18 发布
string s;
isalnum()//判断是否是字母
tolower()//转换为小写
toupper()//转换成大写
s.insert(0,"hello");
getchar()//吸收换行
string s;
string str[1005];
stringstream ss(s);
int i=0;
while(ss>>s)
{
str[i++]=s;
}