| | |
how to fix compile error
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2008
Posts: 2
Reputation:
Solved Threads: 0
Hello, everyone. I've got a compiler error popping up for this class:
The error is:
error C2146: syntax error : missing ';' before identifier 'var'
The funny thing is that if I remove the line "string var", it works fine. Any ideas?
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <string> class Stage { private: string var; public: Stage(); Stage(int num_of_items); };
The error is:
error C2146: syntax error : missing ';' before identifier 'var'
The funny thing is that if I remove the line "string var", it works fine. Any ideas?
![]() |
Similar Threads
- jGRASP error (C++)
- java error (Java)
- C++ Compile Error's (C++)
- compile error (C)
- Playing cards (C++)
- declaration syntax error? (C++)
- Help with Error message (C++)
- redefinition error please help (C++)
Other Threads in the C++ Forum
- Previous Thread: Recursion help....PLEASE!!!
- Next Thread: Increase number of char input
| Thread Tools | Search this Thread |
api application array arrays based binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets





