69,337
社区成员
发帖
与我相关
我的任务
分享
int main()
{
string strName="zhangsan";
string AppName="StudentInfo";
string KeyName="Name";
string ConfigFileName="config.ini";
LPCTSTR lpAppName=(LPCTSTR)AppName.c_str();
LPCTSTR lpKeyName=(LPCTSTR)KeyName.c_str();
LPCTSTR lpFileName=(LPCTSTR)ConfigFileName.c_str();
LPCTSTR lpString=(LPCTSTR)ConfigFileName.c_str();
int nAge;
nAge=12;
if(WritePrivateProfileString(lpAppName,lpKeyName,lpString,lpFileName))
{
printf("写入文件成功\n");
}
return 0;
}
#include <sstream>
double data = 10.123;
stringstream ss;
string string;
ss << data;
getline(ss, string);