I did? ...LOL hehe.
I solved my problem. Yay.
However a new one has arised.
I output a long string and it trails off into the right of the screen and i cant read it. I tried useing endl; but to no avail.
Code:
#include <stdlib.h>
#include <iostream>
#include <string>
#include <conio.h>
#include <windows.h>
using namespace std;
void overview();
void races();
void world();
int main()
{
char name[50];
int input;
cout << " Welcome to my test Proggy!" << endl;
cout << " What is your name?" << endl;
cin.getline(name, 50, '\n');
cout << " Hello " << name;
cout << endl << " Please choose one of the options below ";
cout << endl;
cout << " 1. Overview " << endl;
cout << " 2. Races." << endl;
cout << " 3. World." << endl;
cin >> input;
switch (input)
{
case 1: overview ();
break;
case 2: races ();
break;
case 3: world ();
break;
default:
cout<<"Error, bad input, quitting";
}
system("pause");
return 0;
}
void overview()
{
cout << " An Overview of DragonWars:" << endl;
cout << " DragonWars (Not official) is a MultiPlayer RPG where";
cout << " the player can choose between four Races: Draconians,";
cout << " Humans, Elves and Drow.";
}
void races()
{
cout << " An Overview of the races";
}
void world()
{
cout << " An Overview of the World";
}