Thanks for your comments but I'm still stuck...
I've tried using the strcpy but it's not working (it's the only operator that isn't in the example in the tutorial!). Here's my best attempt so far:
Code:
if (monstype == 1){
char strcpy (char monsdescription,"Big hairy ugly thing");
}
Meaning the overall code is now:
Code:
#include <iostream>
#include <cstring>
using namespace std;
int main()
{
int monstype;
char monsdescription[35];
cout <<"please choose the monster you wish to fight:\n1. Big hairy ugly thing\n2. Small and easy on the eyes\n3. Medium size, much the same as you!\n";
cin>> monstype;
if (monstype == 1){
char strcpy (char monsdescription,"Big hairy ugly thing");
}
else if (monstype == 2){
char strcpy (char monsdescription,"Small and easy on the eyes");
}
else{
char strcpy (char monsdescription,"Medium size, much the same as you!");
}
cout <<"You have chosen "<< monstype <<", "<< monsdescription <<"";
cin.get();
}