Error C2146 Error C4430
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error C2146 and Error C4430 Visual Studio 2013 C++ [closed] up vote -3 down vote favorite I'm trying to implement some classes derived from one main class but I keep getting these errors and I have no idea where they are coming from. Here are de erros: Error 1 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Error 6 error C2146: syntax error : missing ',' before identifier 'filtername' Here is the code: Filter.H: #ifndef _FILTER_H_ #define _FILTER_H_ #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the http://stackoverflow.com/questions/24589052/error-c2146-and-error-c4430-visual-studio-2013-c Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error C2146 and C4430 up vote 0 down vote favorite First: sorry my bad English =(( Sencond: here's my code in "Global.h": #pragma http://stackoverflow.com/questions/6887386/error-c2146-and-c4430 once class GlobalVariable { public: GlobalVariable(void); ~GlobalVariable(void); //------------------------------------------------ public: double pixelWidth; // do rong cua 1 pixel tren Viewport double pixelHeigh; // do cao cua 1 pixel tren Viewport public: Point oldPoint, tempPoint; Circle oldCir, tempCir; DaGiac oldDaGiac, tempDaGiac; Color oldObjColor,tempObjColor, OxyColor; }; class Point { public: Point(void); ~Point(void); double x,y; // toạ độ (x,y) }; class Color { public: Color(void); ~Color(void); double R,G,B; // màu (R,G,B) }; class DaGiac { public: DaGiac(void); ~DaGiac(void); int numOfPeak; //so' dinh? Point peakArr[10]; // ve da giac canh so dinh toi da la 10 }; class Circle { public: Circle(void); ~Circle(void); Point centre; double radius; }; and I have some eror :( ------ Build started: Project: GAS, Configuration: Debug Win32 ------ Compiling... GlobalVariable.cpp e:\documents\bin\gas_project\globalvariable.h(15) : error C2146: syntax error : missing ';' before identifier 'oldPoint' e:\documents\bin\gas_project\globalvariable.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not
, Windows Desktop Development > C++ https://social.msdn.microsoft.com/Forums/vstudio/en-US/3ed455ca-05ce-4df7-8bd0-ecf88171e06f/afxh-error-c2146-afxcollh-error-c4430?forum=vclanguage Standards, Extensions, and Interop Question 0 Sign in http://www.ogre3d.org/addonforums/viewtopic.php?f=18&t=13239 to vote I have been trying different solutions for the following errors, but none are working: >c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afxstr.h(95) : warning C4091: 'typedef ' : ignored on left of 'ATL::CStringT
Information The requested topic does not exist. Board index The team • Delete all board cookies • All times are UTC [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Color scheme by ColorizeIt!