c2079

    2熱度

    3回答

    出於某種原因,我的項目將無法編譯,當我嘗試創建一個wstringstream: std::wstringstream stringstream; 這將導致錯誤C2079: 「 stringstream的」使用未定義類 '的std :: basic_stringstream < _Elem, _Traits,_Alloc>使用[_Elem = wchar_t的,_Traits =標準:: cha

    3熱度

    3回答

    定義類我得到一個編譯錯誤,這個頭文件: #ifndef GAME1_H #define GAME1_H #include "GLGraphics.h" #include "DrawBatch.h" class GameComponent; class Game1 { private: GLGraphics graphics; GameComponent components

    0熱度

    1回答

    我的代碼有錯誤。所有的論壇都說「在這種情況下,使用前向聲明」。我試過這個,它不起作用。 誤差C2079信用:: MAINMENU使用類的MainMenu的未聲明(譯自法語) 我修改了CLASSE具體到這個問題。 main.cpp #include <SFML/Graphics.hpp> #include "Menu.h" #include "credit.h" #include "mai