重拾的部分STL或函数

字符串处理类

c库函数

a[i]=tolower(a[i]);//把字符转换成小写字母,非字母字符不做出处理

string函数

tmp= b.find(a);//在字符串b中寻找字符串a,返回下标
tmp=b.find(a,pos);//从下标pos处开始寻找
tmp==string::npos;//没找到

getline(cin,a);//输入一整行字符串(含空格)
原文地址:https://www.cnblogs.com/Liuz8848/p/15375109.html