【发布时间】:2013-05-20 14:00:00
【问题描述】:
C:\Users\Victor\Desktop\0.3.r5958\luascript.cpp|9037|error: 'buttonEnter' may be used uninitialized in this function|
C:\Users\Victor\Desktop\0.3.r5958\luascript.cpp|9037|error: 'buttonEscape' may be used uninitialized in this function|
C:\Users\Victor\Desktop\0.3.r5958\luascript.cpp|9039|error: 'popup' may be used uninitialized in this function|
||=== Build finished: 3 errors, 0 warnings ===|strong text
这是我得到错误的行:
std::string str, title, message;
uint8_t buttonEnter, buttonEscape;
std::vector<ModalChoice> buttons, choices;
bool popup;
我正在使用 c++ 并尝试在代码块中编译
【问题讨论】:
-
这家伙被stackoverflow.com/questions/12958931/… 否决的原因可能与您甚至没有提及您使用的语言相同。
-
只读取编译器错误。它准确地告诉你发生了什么。
-
对不起,我只是在学习语言
-
是的 - 你还没有初始化它们。
-
我要说...因为你还没有初始化它们。
标签: c++ compiler-errors