Search:

Type: Posts; User: chaucer345

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. I understand that having global variables that...

    I understand that having global variables that multiple functions modify is a complicated thing to program around, but it's kind of the entire point of my program. The whole idea of this game is that...
  2. Oh! Okay, I get it now... huh. Honestly when...

    Oh! Okay, I get it now... huh.

    Honestly when all is said and done, it seems like the answer to my original question is pretty clear. I'm going to have to merge my two classes so that all of the...
  3. Okay, now for a question that has been bothering...

    Okay, now for a question that has been bothering me a long time...

    What's an object?

    I get that if I define a structure, or a class, or whatever in main I'm creating a copy of that specifically...
  4. Actually no... would you be kind enough to link...

    Actually no... would you be kind enough to link to a page explaining that? I found this: vector - C++ Reference , but that doesn't tell me how a storage array could be useful for making a large...
  5. I'd already implemented part of what you're...

    I'd already implemented part of what you're saying into my code. In the tutorial it's possible to make two decisions that affect the medic's opinion of you, which is expressed in code as an opinion...
  6. Oh, then what did you mean by a vector when you...

    Oh, then what did you mean by a vector when you were talking about keeping a master list before?
  7. Hmm... from what you're saying it seems like I...

    Hmm... from what you're saying it seems like I should be looking at this tutorial: Linked Lists in C++ Tutorial - Cprogramming.com

    I guess I've got more reading to do on the fundamental things...
  8. Okay, so basically the idea of this game is that...

    Okay, so basically the idea of this game is that it's a puzzle item adventure game where the goal is to find specific items in certain rooms and bring them to the room where it's needed. So for...
  9. A Tale of Two Classes: The Conundrum of Choosing More Modularity or Fewer Definitions

    For once, when posting in this forum, I have a problem that I actually know how to code around, in fact I might be able to think of two ways to code around it, I'm just not sure which one would be...
  10. You're a good person and you should feel good!...

    You're a good person and you should feel good! Thank you! It's fixed!
    I really do need to learn how to do cin.ignore() I guess.
  11. My program is acting differently when I run it in my compiler than when I build it

    Okay, so this is really weird.

    I'd just finished up a good chunk of program in my compiler (I use code::blocks) and tested it out by hitting compile. It worked perfectly well, the following loop...
  12. Awesome! I changed the syntax and added the...

    Awesome! I changed the syntax and added the reference as an argument to the function and now it's working. Thank you so much.

    I had actually already stated


    game_characters.wind_opinion = 0;
    ...
  13. Request for help with classes and the use of references on variables within them

    Hello all. I've been trying to make a class of functions that track certain responses that a player makes in my text adventure and modify the dialogue options based on each game character's opinion...
  14. Oh now I get it! Thank you so much Salem! I...

    Oh now I get it! Thank you so much Salem!
    I fixed the whole thing by making the ||s into &&s. I really need to brush up on basic true and false.
  15. An infintely looping while loop and the quandry of != relational operators

    Okay, so the time has come for me to correct a hole in my knowledge about my while loops, namely, why they never seem to be able to check for my != relational operators.

    So I was writing a loop...
  16. Oh! Oh... that makes sense. I fixed that, and...

    Oh! Oh... that makes sense. I fixed that, and after yanking the copy pasted statement to that effect out of the case switch the program compiled.
    Thank you so much for your help! I would have spent...
  17. Oh! Sorry, I must have completely spaced out on ...

    Oh! Sorry, I must have completely spaced out on the int array thing. Thank you so much. But how am I adding another member to a structure later on? All I was trying to do was define a reference for...
  18. Creating References to Variables Within Structures and Using the cin.getline Function

    Hello again all, So I've been doing a more organized re-write of a text adventure program I've been working on and putting variables into structures, but I've had some serious difficulty accessing...
  19. It worked! Thank you so much. You know, as I'm...

    It worked! Thank you so much.

    You know, as I'm using it as a learning exercise anyway, I think I'm actually going to rewrite this program from scratch (minus the string literals). I've learned...
  20. Okay, so in an attempt to give the requested...

    Okay, so in an attempt to give the requested context I threw together a full program that was just the essential functions and portions of main() with easy to visualize cout statements that would...
  21. What do you mean by the type of parameters? You...

    What do you mean by the type of parameters? You mean like ints or floats? I'm very sorry, but I'm just not sure what you're talking about with this one. Would it be possible for you to give me a...
  22. Hmm... I guess you're right, I tried using...

    Hmm... I guess you're right, I tried using pointers to provide the location of the variables of interest in my if statements/case switches, defining the pointers like this:


    int...
  23. No, actually I'd read the tutorial for pointers...

    No, actually I'd read the tutorial for pointers on this site and had had problems figuring out what they were for until just now. I get it now, if I want to section my code into functions to keep...
  24. How to Make a Function Modify a Variable Globally Instead of Locally

    Okay, so I've run into another weird problem that I'm not sure how to solve. So as part of the text adventure I've been writing to help me learn C++, I built a function that displays the player's...
  25. Oh, now I get it. Thank you for clearing things...

    Oh, now I get it. Thank you for clearing things up!
Results 1 to 25 of 36
Page 1 of 2 1 2