Hell my friend,
I blieve someone posted something here in regards to syntx errors u are having, I strongly recommend the same sites to be viewed.
here is how I so far fixed .... going from here on might help u a little bit.. see what changes have been made..
esp with '\n' or "\n" u had a bunch of them there plus the } closing... of start function..
Good luck..
Code:
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include <string>
using std::cin;
using std::cout;
using std::string;
unsigned long int money;
unsigned short int reputation;
unsigned short int time_worked;
unsigned short int skill;
string name;
//string hospital name;
string state;
string country;
void start();
//void instruction();
void begin();
void yourstats();
void gamemenu();
void work();
void buyitem();
void sellitem();
void patientdied();
void patientgotwell();
void paycheck();
void bills();
void fired();
void hired();
void sued();
void gameover();
void instruction()
{
cout<<"What is there to explain? Follow the promts and get money! boink" << '\n';
start();
}
void start()
{
string mainmenuchoice;
cout<<"Welcome to Doctor Sim v1!" << '\n\n';
cout<<"Main Menu"<<'\n';
cout<<"1)Begin Simulation" << '\n';
cout<<"2)Instruction" << '\n';
cout<<"3)Exit" << '\n';
cin>>mainmenuchoice;
cin.ignore();
if (mainmenuchoice == "1") {
begin();
}
else if (mainmenuchoice == "2") {
instruction();
}
else if (mainmenuchoice == "3") {
}
else {
cout<<"Wrong Answer! Simulation will now begin!" << '\n\n';
begin();
}
}
void begin()
{
string name, answer1;
name = "Doctor";
cout<<"Hello, are you here to apply for the job?";
cin>>answer1;
cin.ignore();
if (answer1 == "yes") {
cout<<"good";
}
else if (answer1 == "no") {
cout<<"That's too bad, you look like a fine doctor. I think you should see the hospital manager anyway.";
}
cout<<"Hello, you must be the doctor I heard about. We're looking for a another doctor to hire, so let's preceed to the interview.";
cout<<"First, what's your name?";
cin>>name;
cout<<"Let me write this down...Name:" << name << ", what college did you goto?";
cout<<"Really...";
//cin>>;
cout<<"Well, i'll hire you, but only on a trial basis. You screw up and you're gone.";
}
int main()
{
start();
return 0;
}