here is my code:
I get these errors:Code:#include <iostream> using std :: ostream; using std :: istream; #include <string> using namespace std; enum CDCatagory { Show, Pop, Rock, Classical, Country, Religious, International, Gothic }; class CD { unsigned long int UPC; string Artist; string Title; unsigned short int PlayTime; CDCatagory Category; float Price; unsigned int Sold; public: //default CD(); CD(unsigned long int id); CD(CD & c); void CopyCD(CD CopyCDFrom, CD CopyCDTo) ; bool operator == (const CD c); bool operator < (const CD c); CD operator = (const CD c); friend istream & operator >> (istream & i, CD & c); friend ostream & operator << (ostream & o, const CD & c); }; };
c:\program files\microsoft visual studio\proj1\tower.h(51) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\proj1\tower.h(51) : error C2143: syntax error : missing ';' before '}'
c:\program files\microsoft visual studio\proj1\tower.h(51) : error C2143: syntax error : missing ';' before '}'
Error executing cl.exe.
I get these in my header file, i'm just working on the header file now so i set up a fake cpp file so I can compile.
Thanks to anyone who trys to help
NOMAD




Reply With Quote