Declaration terminated incorrectly
-
My program is showing "Declaration Terminated incorrectly".Please help........ #include #include #include #include #include #include void stock(); void billing(); class SBILL { int slno; int itemcode; char name[50]; float quantity; float price; float ttlprice; float taxrate; float amt; public: void subenter() { cout<<"\nEnter the following details:" <<"\n\tItemCode\t:\n\t\t"; cin>>itemcode; cout<<"\n\tName\t:\n\t\t"; gets(name); cout<<"\n\tQuantity\t:\n\t\t"; cin>>quantity; cout<<"\n\tTax rate\t:\n\t\t"; cin>>taxrate; subcalculate(); } void subdisplay() { cout<<"\n"<>itemcode; cout<<"\n\tCustomer name\t:\n\t\t"; gets(cusname); void dis1() { cout<<"\nBILL CODE\t:"<>sitemcode; cout<<"\n\tItem Name\t:\n\t\t"; gets(sitemname); cout<<"\n\tQuantity\t:\n\t\t"; cin>>squantity; cout<<"\n\tPrice\t:\n\t\t"; cin>>sprice; cout<<"\n\tTax rate\t:\n\t\t"; cin>>staxrate; } void display() { cout<<"\n"<
-
My program is showing "Declaration Terminated incorrectly".Please help........ #include #include #include #include #include #include void stock(); void billing(); class SBILL { int slno; int itemcode; char name[50]; float quantity; float price; float ttlprice; float taxrate; float amt; public: void subenter() { cout<<"\nEnter the following details:" <<"\n\tItemCode\t:\n\t\t"; cin>>itemcode; cout<<"\n\tName\t:\n\t\t"; gets(name); cout<<"\n\tQuantity\t:\n\t\t"; cin>>quantity; cout<<"\n\tTax rate\t:\n\t\t"; cin>>taxrate; subcalculate(); } void subdisplay() { cout<<"\n"<>itemcode; cout<<"\n\tCustomer name\t:\n\t\t"; gets(cusname); void dis1() { cout<<"\nBILL CODE\t:"<>sitemcode; cout<<"\n\tItem Name\t:\n\t\t"; gets(sitemname); cout<<"\n\tQuantity\t:\n\t\t"; cin>>squantity; cout<<"\n\tPrice\t:\n\t\t"; cin>>sprice; cout<<"\n\tTax rate\t:\n\t\t"; cin>>staxrate; } void display() { cout<<"\n"<
Did you really think that it's necessary to dump your entire unformatted code base here and expect us to guess where you are getting this error message? [Edit] You have several problems going on here. You have many for statements that are simply
for (i = 0; i>cde;
a couple of which appear to have no purpose. Your nested class declaration is incomplete. Your include statements are missing. You are declaring functions inside other functions. This has nothing to do with C++/CLI probably others. [/Edit]
You can lead a developer to CodeProject, but you can't make them think. The Theory of Gravity was invented for the sole purpose of distracting you from investigating the scientific fact that the Earth sucks.
-
Did you really think that it's necessary to dump your entire unformatted code base here and expect us to guess where you are getting this error message? [Edit] You have several problems going on here. You have many for statements that are simply
for (i = 0; i>cde;
a couple of which appear to have no purpose. Your nested class declaration is incomplete. Your include statements are missing. You are declaring functions inside other functions. This has nothing to do with C++/CLI probably others. [/Edit]
You can lead a developer to CodeProject, but you can't make them think. The Theory of Gravity was invented for the sole purpose of distracting you from investigating the scientific fact that the Earth sucks.
Well, thanks for bringing it to my notice.Actually when I copied it into the editor on the website, it looked fine, but after submission edges of the statements were cropped off so was the formatting :confused:like the one u mentioned.I am not able to submit the complete statements.
-
My program is showing "Declaration Terminated incorrectly".Please help........ #include #include #include #include #include #include void stock(); void billing(); class SBILL { int slno; int itemcode; char name[50]; float quantity; float price; float ttlprice; float taxrate; float amt; public: void subenter() { cout<<"\nEnter the following details:" <<"\n\tItemCode\t:\n\t\t"; cin>>itemcode; cout<<"\n\tName\t:\n\t\t"; gets(name); cout<<"\n\tQuantity\t:\n\t\t"; cin>>quantity; cout<<"\n\tTax rate\t:\n\t\t"; cin>>taxrate; subcalculate(); } void subdisplay() { cout<<"\n"<>itemcode; cout<<"\n\tCustomer name\t:\n\t\t"; gets(cusname); void dis1() { cout<<"\nBILL CODE\t:"<>sitemcode; cout<<"\n\tItem Name\t:\n\t\t"; gets(sitemname); cout<<"\n\tQuantity\t:\n\t\t"; cin>>squantity; cout<<"\n\tPrice\t:\n\t\t"; cin>>sprice; cout<<"\n\tTax rate\t:\n\t\t"; cin>>staxrate; } void display() { cout<<"\n"<