发布时间:2015-05-27 20:51:59
使用VS2010编译时。会出现以下警告。warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(371) :.........【阅读全文】
发布时间:2015-03-12 15:09:58
1、首先要加入头文件:#include <algorithm>2、将string字母转换为小写代码:点击(此处)折叠或打开void strToLower(string &str){ transform(str.begin(),str.end(),str.begin(),tolower);}3、比较两个字符串的大.........【阅读全文】
发布时间:2015-03-12 14:59:23
点击(此处)折叠或打开#include <string>#include <iostream>#include <algorithm> #include <functional>using namespace std;void removeAll(string &str,char c){ stri.........【阅读全文】