Search:

Type: Posts; User: bulletbutter

Search: Search took 0.01 seconds.

  1. Thank you for the clarification! As far as...

    Thank you for the clarification!

    As far as posting the code, I wouldn't feel comfortable posting the code here as none of it is mine. Even though the program is freely available at a particular...
  2. Deciphering a code example, string class confusion

    A little bit of a backstory....I am making a program in Visual Basic. The program basically opens up a compressed archive, finds a file inside it and then I THINK it modifies some data at a byte...
  3. Replies
    7
    Views
    10,018

    Thanks, that did it. What exactly is that?

    Thanks, that did it.

    What exactly is that?
  4. Replies
    7
    Views
    10,018

    #include not working?

    #include "stdafx.h"
    #include "Player.h"
    #include <iostream>
    #include <string>

    using namespace std;


    int main(){
    string name;
  5. Replies
    1
    Views
    1,100

    Text RPG, how do I set up my program?

    I don't know if thats the right way to put it. I have it game set up the following way



    int main(){
    game rungame;
    rungame.start();
    return 0;
    }
  6. Replies
    6
    Views
    1,790

    I am not sure what you mean as I don't know what...

    I am not sure what you mean as I don't know what it does.

    I changed my code a bit. I removed setPlayerAbilties and just declared the array as a private variable but gives me errors about...
  7. Replies
    6
    Views
    1,790

    I was starting to think that. I tried modifying...

    I was starting to think that. I tried modifying setPlayerAbilities to return the array but failed miserably and it really doesn't seem like a great idea.

    Would doing away with setMageAbilities()...
  8. Replies
    6
    Views
    1,790

    Problem Outputting Array Element

    I am having problems trying to output a string thats in an array. There are three member function of a class that I am trying to use to get this done.

    The first is setPlayerAbilities() which...
  9. Replies
    18
    Views
    2,570

    Sorry you went through all that trouble over a...

    Sorry you went through all that trouble over a misplaced bracket. I feel bad now :(.

    I am coming back from like a 2 year programming break and I am making this little program to springboard myself...
  10. Replies
    18
    Views
    2,570

    Woah, woah...let me see if I understand what you...

    Woah, woah...let me see if I understand what you said.

    Class's should not print text UNLESS I'm using a "game" class? Why shouldn't class's print text? I am just asking cause I have a game class...
  11. Replies
    18
    Views
    2,570

    doh...misplaced } only took me 4 hours to...

    doh...misplaced }

    only took me 4 hours to figure it out
  12. Replies
    18
    Views
    2,570

    member functions not working properly

    Needing help with my text rpg again. I have two classes that I am using to check and assign which decision a user picks. They have 2 choices (warrior or mage). If they choose mage some text is...
  13. Replies
    5
    Views
    1,432

    cool thanks I removed displayname() and just...

    cool thanks

    I removed displayname() and just used getname() and it worked great when I plugged it into my compiler.
  14. Replies
    5
    Views
    1,432

    about private class variables

    I need to be able to use a private class variable in several cout statements. I need to do something like this..



    cout <<"Hello " <<Person.displayName() <<"how are you today" <<endl;

    but...
  15. Replies
    9
    Views
    2,545

    do I have to put time_t seconds;...

    do I have to put

    time_t seconds;
    time(&seconds);
    srand((unsigned int) seconds);

    in each member function of my class that uses rand()?
  16. Replies
    9
    Views
    2,545

    about #include files and header files

    I am wanting to generate a random number from inside a member function of a class thats located in its header file.

    My question is..where do I put the #include <time.h> and the needed variables...
  17. Replies
    21
    Views
    3,025

    Thanks for all the replies. To be honest I have...

    Thanks for all the replies. To be honest I have little to no experience with vectors so I will stay away from those for now. And most of what you guys said was way over my head.

    I ended up doing...
  18. Replies
    21
    Views
    3,025

    Well I am kinda brainstorming this whole thing so...

    Well I am kinda brainstorming this whole thing so I will just post the parts of the code I have....I know its messy and prolly wont compile but I am just trying to get it down on paper before I hit...
  19. Replies
    21
    Views
    3,025

    Can function return an array?

    In a member function of my class I made a string array. In a different member function (same class) I need to be able to read that array. I did a quick search here and didn't find anything, google...
Results 1 to 19 of 19