i am making a program in which there are a no of classes which i have declared in some header files and then i have included them in the main program but it is showing some errors....the names of the header files are:
1 2 3 4 5 6 7 8
|
#include"Header.h"
#include"int2string.h"
template <class T>
#include"categories.h"
#include"Player.h"
#include"QnA.h"
#include"Scoremanager.h"
#include"wait.h"
|
and the errors are :
1>e:\books\oopes project\trial4\trial4\int2string.h(14): error C2146: syntax error : missing ';' before identifier 'ToString'
1>e:\books\oopes project\trial4\trial4\int2string.h(14): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\books\oopes project\trial4\trial4\int2string.h(14): error C2065: 'T' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\int2string.h(14): error C2146: syntax error : missing ')' before identifier 'thing'
1>e:\books\oopes project\trial4\trial4\int2string.h(14): error C2059: syntax error : ')'
1>e:\books\oopes project\trial4\trial4\wait.h(7): error C2143: syntax error : missing ';' before '{'
1>e:\books\oopes project\trial4\trial4\wait.h(7): error C2447: '{' : missing function header (old-style formal list?)
1>e:\books\oopes project\trial4\trial4\trial4.cpp(28): error C2872: 'string' : ambiguous symbol
1> could be 'e:\books\oopes project\trial4\trial4\int2string.h(14) : int string'
1> or 'c:\program files\microsoft visual studio 11.0\vc\include\xstring(2300) : std::string'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(28): error C2146: syntax error : missing ';' before identifier 'player_name'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(28): error C2065: 'player_name' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(31): error C2872: 'string' : ambiguous symbol
1> could be 'e:\books\oopes project\trial4\trial4\int2string.h(14) : int string'
1> or 'c:\program files\microsoft visual studio 11.0\vc\include\xstring(2300) : std::string'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(31): error C2146: syntax error : missing ';' before identifier 'main_quesfname'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(31): error C2065: 'main_quesfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(32): error C2872: 'string' : ambiguous symbol
1> could be 'e:\books\oopes project\trial4\trial4\int2string.h(14) : int string'
1> or 'c:\program files\microsoft visual studio 11.0\vc\include\xstring(2300) : std::string'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(32): error C2146: syntax error : missing ';' before identifier 'main_ansfname'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(32): error C2065: 'main_ansfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(33): error C2872: 'string' : ambiguous symbol
1> could be 'e:\books\oopes project\trial4\trial4\int2string.h(14) : int string'
1> or 'c:\program files\microsoft visual studio 11.0\vc\include\xstring(2300) : std::string'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(33): error C2146: syntax error : missing ';' before identifier 'ans'
1>e:\books\oopes project\trial4\trial4\trial4.cpp(33): error C2065: 'ans' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(39): error C2065: 'num_players' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(41): error C2065: 'num_players' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(43): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(45): error C2065: 'player_name' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(46): error C2065: 'player' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(46): error C2065: 'player_name' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(49): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(50): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(59): error C2065: 'choice' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(61): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(63): error C2065: 'num_players' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(65): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(67): error C2065: 'choice' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(67): error C2050: switch expression not integral
1>e:\books\oopes project\trial4\trial4\trial4.cpp(73): error C2065: 'main_quesfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(73): error C2065: 'o_SciTech' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(74): error C2065: 'main_ansfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(74): error C2065: 'o_SciTech' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(74): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(75): error C2065: 'o_SciTech' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(75): error C2065: 'main_quesfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(77): error C2065: 'ans' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(78): error C2065: 'o_SciTech' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(78): error C2065: 'ans' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(78): error C2065: 'main_quesfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(78): error C2065: 'main_ansfname' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(81): error C2065: 'player' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(81): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(82): error C2065: 'player' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(82): error C3861: 'wait': identifier not found
1>e:\books\oopes project\trial4\trial4\trial4.cpp(110): error C2065: 'finalscore' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(110): error C2065: 'player' : undeclared identifier
1>e:\books\oopes project\trial4\trial4\trial4.cpp(110): error C2065: 'num_players' : undeclared identifier
can someone tell me what could be wrong because my visual studio is not showing any red underlines below any line but on compiling these errors come up.