if I create a string like
string filepath;
how can I change it's variable, blah, blah, blah. An example would be better. For example, for cout it would be
cout<<"users/"<<Name<<".txt";
...
Type: Posts; User: gguy85
if I create a string like
string filepath;
how can I change it's variable, blah, blah, blah. An example would be better. For example, for cout it would be
cout<<"users/"<<Name<<".txt";
...
Here's a quick look:
class Player {
public:
int health;
int strength;
int agility;
void move();
void attackMonster();
yeah......that wasn't the actual code though. I do it public and with the ; at the end but it doesn't work :-/
I don't seem to be able to get classes very well. For example, let's say I put....
class Player {
int strength;
}
Player user;
so now, how do I edit the value of user.strength. When I use