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++,并试图在代码块编译
也许这同一个原因这个家伙是http://stackoverflow.com/questions/12958931/c-warning-x-may-be-used-uninitialized-in-this-function我下降了,因为你甚至不提及语言您正在使用。 – DavidB
只需阅读编译器错误。它告诉你到底发生了什么。 – juanchopanza
对不起,但我只是在学习语言 – user2399365