gpt4 book ai didi

c++ - 错误 : identificator not defined in c++

转载 作者:太空宇宙 更新时间:2023-11-04 14:43:41 26 4
gpt4 key购买 nike

<分区>

我有这个返回字符串的函数:

string getStringFromFile()
{
ifstream in("in.txt");
ofstream out("out.txt");
std::string line;
while(getline(in,line)){
if(line.empty())
line="http://www.google.com/";
}

return line;
}

当尝试调用 getStringFromFile 函数时,它返回语法错误(错误:标识符未定义)

CreateWindowEx(0, _T("EDIT"),
_T(getStringFromFile()),
WS_CHILD | WS_VISIBLE | WS_BORDER,
260, 10,
200, 20,
hWnd, NULL, hInst, NULL);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com