Search:

Type: Posts; User: gguy85

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    943

    Another Quick Question

    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";
    ...
  2. Replies
    6
    Views
    1,018

    Here's a quick look: class Player { ...

    Here's a quick look:

    class Player {
    public:
    int health;
    int strength;
    int agility;

    void move();
    void attackMonster();
  3. Replies
    6
    Views
    1,018

    yeah......that wasn't the actual code though. I...

    yeah......that wasn't the actual code though. I do it public and with the ; at the end but it doesn't work :-/
  4. Replies
    6
    Views
    1,018

    Quick Question on Classes

    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
Results 1 to 4 of 4