Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做的是在 C++ 中单击按钮时显示随机答案。我可以使用 char* 创建数组,但无法在文本框中显示它。(我对 C++ 有点陌生)
谢谢你的答案。
编码我得到的
您没有使用 unicode 字符格式,因此将其更改char*为wchar_t*.
char*
wchar_t*
wchar_t* answers[7][40] = {L"hello",L"this",L"is",L"an",L"answer",L"randoms",L"stuff"};