1.交换数值:使用swap(A,B)便可。相应头文件为iostream。ios
2.getline(cin,s) //接受一个字符串,能够接受空格并输出。必须包含头文件#include<cstring>;ui
3.extern int islower(int c); 用法:#include <ctype.h> 功能:判断字符c是否为小写英文字母spa
4.toupper(s[0]);用法:#include <ctype.h>功能:小写转大写ci