using namespace std;
string userName, userGender;
int userChoice;
void intro () {...}
void phone () {...}
int _tmain(int argc, _TCHAR* argv[])
{
intro ();
phone ();
_getch();
cout << "\n\n\n~The End~";
_getch();
return 0;
}
So this is my first attempt at programming. I'm doing a story where the user can choose their own path to provide multiple endings. The user also names their character. It isn't very complicated. I use a switch and based on the userChoice input, the story goes down the corresponding pathway. If they choose one of the successful options, I use goto to jump to the next part of the story. I would love to incorporate some visuals/audio, as well as more RPG elements.
My question for now is if doing each scene under a void sceneName () is good organization. Then I just call out the scene in main as you can see. Thanks.
#include "stdafx.h" #include <iostream> #include <string> #include <conio.h> using namespace std;
Missed this when I pasted the first bit.