gpt4 book ai didi

c++ - 函数原型(prototype)错误

转载 作者:行者123 更新时间:2023-11-28 08:29:29 25 4
gpt4 key购买 nike

为什么这段代码会导致错误?

class CommonRuntine
{
public:
struct TProcess;
TProcess GetProcessByName(LPCSTR ProcessName);
};

它在“};”位上显示“E2293 ) Expected

PS:LPCSTR 是一种类型

最佳答案

#include <windows.h>

必须包含定义该类型的文件

关于c++ - 函数原型(prototype)错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2795243/

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