MFC
无间的爱
这个作者很懒,什么都没留下…
展开
-
c++string纯数字字符串求和
#include "stdafx.h" #include using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string str = "1234567890"; int sum = 0; for (int i=0;i { sum += (str[i]-48);; } printf("%d",sum)原创 2016-12-21 10:14:05 · 3804 阅读 · 0 评论 -
文件改名
环境mfc使用 Unicode 字符集 代码仅供参考 代码: #include <sstream> using namespace std; CStringA CStrW2CStrA(const CStringW &cstrSrcW) { int len = WideCharToMultiByte(CP_ACP, 0, LPCWSTR(cstrSrcW)...原创 2019-05-06 10:17:32 · 184 阅读 · 0 评论