cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
error with class
error with class
Feb 14, 2013 at 11:21am UTC
sak
(1)
class machinex {
public:
int id;
int type(bool x,bool y, bool z );
machinex (int y);
}
machinex.h:1:1: error: unknown type name ‘class’
machinex.h:1:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
what is the problem with this class?
Feb 14, 2013 at 11:29am UTC
Peter87
(11234)
Compile the code as C++ instead of C.
Topic archived. No new replies allowed.