Arggh! those darn TESEFADs!!

Mac Osxtopus

Registered
(for those of you who dont know, TESEFAD = The Evil Syntax Error From Another Dimension). IN project builder i was working a basic text-based rpg made in C++. No matter what i do when i syntax check i always get this parse error!! arrghiness! The program is as follows:
#include <iostream>
using namespace std;

void main()
{
int caste=0;
do
{
cout << "Welcome To My Experimental RPG!, choose a character class:\n ";
cout << "1: Knight\n 2: Wizard\n 3: Necromancer\n 4: Assassin\n 5: Demon\n 6: Elf\n 7: Orc\n 8: Peasant\n 9: Mercenary\n 10: Wraith\n";
cin >> caste;

switch(caste)
{
case 1:
cout << "you chose Knight\n";
break;
case 2:
cout << "You chose wizard";
break;
case 3:
cout << "You chose necromancer";
break;
case 4:
cout << "You chose assassin";
break;
case 5:
cout << "You chose Demon";
break;
case 6:
cout << "You chose Elf";
break;
case 7:
cout << "You chose Orc";
break;
case 8:
cout << "You chose Peasant";
break;
case 9:
cout << "You chose Mercenary";
break;
case 10:
cout << "You chose Wraith";
break;

default:
cerr << "Invalid option chosen \n";
}
}
while
(caste!=1||caste!=2||caste!=3||caste!=4||caste!=5 ||caste!=6||caste!=7||caste!=8||caste!=9||caste!=10);

}
i get the errors of a parse error of ')' in the last line of the while command. Ack! what the? I checked it again in project builder and now it says " return type for `main' changed to 'int' ". Whats with this?
 
Back
Top