i think i dug myself into a deeper hole trying to resolve the errors above so i appreciate the help
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
#include <string>
#include <iostream>
int main()
{
std::string response;
std::cout<<"Your flashlight begins to flicker, would you like to continue or go back?"<<std::endl;
std::cout<<"/////////////////////////////////////////////////////////////////////////"<<std::endl;
getline(std::cin, response);
if (response == "go back")
{
std::cout<<"The door you came from is blocked, you must continue..."<<std::endl;
std::cout<<std::endl;
std::cout<<"You continue walking for some time, you soon reach a split..."<<std::endl;
std::cout<<"Will you go left or right?"<<std::endl;
getline(std::cin, response);
if (response == "left")
}
{
std::cout<<"You continue to walk to run into a steel door, you hear noises behind it!"<<std::endl;
std::cout<<"You quickly turn around and run!
getline (std::cin, response) ;
else if (response == "right")
}
{
std::cout<<"You see a light and the end of the hallway, but hear something approaching from behind you..."<<std::endl;
std::cout<<"You stop in the middle of the hallway..."<<std::endl;
std::cout<<"You can either turn around, or continue walking..."<<std::endl;
getline (std::cin, response);
if (response == "turn around")
}
{
std::cout<<"You turn around and see a large shadow, you begin to faint and your heart beat increases, and your arm begins to hurt."<<std::endl;
std::cout<<"You wake up in a cold sweat and realize it was a nightmare..."<<std::endl;
std::cout<<"The End"<<std::endl;
getline (std::cin, response);
else if (responce == "Continue Walking")
}
{
std::cout<<"You continue walking a reach a small wooden door."<<std::endl;
std::cout<<"You are able to kick the door down, and inside is a large room with many doors"<<std::endl;
}
|
||=== Build: Debug in RolePlayTypeGame (compiler: GNU GCC Compiler) ===|
D:\My Documents\RolePlayTypeGame\main.cpp|24|warning: missing terminating " character [enabled by default]|
D:\My Documents\RolePlayTypeGame\main.cpp|24|error: missing terminating " character|
D:\My Documents\RolePlayTypeGame\main.cpp||In function 'int main()':|
D:\My Documents\RolePlayTypeGame\main.cpp|21|error: expected primary-expression before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|21|error: expected ';' before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|26|error: 'else' without a previous 'if'|
D:\My Documents\RolePlayTypeGame\main.cpp|27|error: expected primary-expression before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|27|error: expected ';' before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|35|error: expected primary-expression before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|35|error: expected ';' before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|41|error: 'else' without a previous 'if'|
D:\My Documents\RolePlayTypeGame\main.cpp|41|error: 'responce' was not declared in this scope|
D:\My Documents\RolePlayTypeGame\main.cpp|42|error: expected primary-expression before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|42|error: expected ';' before '}' token|
D:\My Documents\RolePlayTypeGame\main.cpp|46|error: expected '}' at end of input|
||=== Build failed: 13 error(s), 1 warning(s) (0 minute(s), 1 second(s)) ===|
i tried to add the '}' and these are what i got, theres no missing ';' as it says many times in the errors above
sorry for the inconvenience before hand