从C到C 的转换无法编译

conversion from C to C++ - cannot compile

本文关键字:编译 转换      更新时间:2023-10-16

嗨,我在http://pastebin.com/cjcd5apn上有一个代码。问题是在编译期间,我遇到了很多错误:

Error: Identifier "lastButton" is undefined in "ft800.cpp", Line: 406, Col: 6  
Error: "this" may only be used inside a nonstatic member function in "ft800.cpp", Line: 740, Col: 6  
Warning: Nonstandard qualified name in global scope declaration in "ft800.cpp", Line: 445, Col: 12  

您知道为什么会发生吗?我省略了什么吗?

问题是在顶部定义。我找不到它,但是现在已经解决了。

应始终编写定义指令,以便在代码中无意中使用它。最好的方法是使用大写字母,因为它保留给预处理器语言。

错误:声明没有声明任何内容