Search:

Type: Posts; User: nickodonnell

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,684

    Okay, I didn't put the parenthesis in the...

    Okay, I didn't put the parenthesis in the showStrength thing where I pass the arguments for levelUp()'s paremeters, but I'm still getting the same problem. Here's the update of my code. What in the...
  2. Replies
    10
    Views
    1,684

    Okay, I added the reference operator to the...

    Okay, I added the reference operator to the string. Here are my compiler errors.

    invalid initialization of reference of type 'int&' from expression of type '<unknown type>'
    passing argument 1...
  3. Replies
    10
    Views
    1,684

    Alright, new problem. I didn't do the structure...

    Alright, new problem. I didn't do the structure thing, instead I just made a levelUp function.
    However, when I try to put in the strength and stats values, I, er... get a compiler error.

    Here's...
  4. Replies
    10
    Views
    1,684

    Hmm, so you can actually create a structure...

    Hmm, so you can actually create a structure within a function? So like, if they choose dwarf the StatIncrement.iStrength inside the struct would increase the stats in the class with the function? ...
  5. Replies
    20
    Views
    2,703

    C++ isn't windows. It takes a LOOOONG time to be...

    C++ isn't windows. It takes a LOOOONG time to be able to make useful window apps. You start by learning the basics (and a hangman game isn't as simple as it seems). Basically, you have to learn...
  6. Replies
    4
    Views
    914

    I know this problem's fixed, but just to clerify...

    I know this problem's fixed, but just to clerify things, flicka, whitespace in your coding doesn't matter. You could have used


    cout <<

    "Text Here" ...
  7. Replies
    10
    Views
    1,684

    Hmm, okay I think I need to read some more before...

    Hmm, okay I think I need to read some more before I attempt this. Thanks for those tips, though. Before I go off to reading again... you're saying instead of making an instance for each race, I...
  8. I'm not entirely sure, but change if (*grade...

    I'm not entirely sure, but change


    if (*grade >= 0 && *grade <= 59)
    {
    std::cout << "The grade is an F.";
    }

    to
  9. Replies
    10
    Views
    1,684

    Whoa... tough one here.

    I'm wanting to add a levelUp function to my code, but I'm not exactly sure how to go about that. I'll post the code real quick and continue why...



    #include <iostream>
    #include <string>...
  10. Thread: Menu Help

    by nickodonnell
    Replies
    3
    Views
    849

    #include using namespace std; int...

    #include <iostream>
    using namespace std;

    int main()
    {
    int select; //the actual selection you'll be inputing
    int selectCount = 0; //you'll see why i made this later. make sure it's...
  11. Replies
    11
    Views
    1,635

    #include using namespace std; ...

    #include <iostream>
    using namespace std;

    //START STATS CLASS
    class Stats
    {
    public:
    Stats();
    ~Stats();
  12. Replies
    11
    Views
    1,635

    Thanks for all the help. I've been searching for...

    Thanks for all the help. I've been searching for reference tutorials that are good, and I've came up pretty much empty handed so far. I happened to be in Jonesboro yesterday and bought a book on...
  13. Replies
    9
    Views
    4,338

    Well if you're pretty new, I'd suggest...

    Well if you're pretty new, I'd suggest familiarizing yourself with the language throuroughly first (which... you've probably heard before, right?). I'm new as well, and the only time I think about...
  14. Replies
    27
    Views
    3,180

    I think he was serious. He meant write something...

    I think he was serious. He meant write something to check and see if the file plays, and if not bla bla...
  15. Replies
    11
    Views
    1,635

    Structures... oh boy

    Yes, in my ever-stubborn quest for C++ knowlege, I have begun messing with structures (in which I should have before classes).

    I have a problem, though. I have declared variables in the...
  16. Replies
    11
    Views
    2,603

    I don't know if it'll work right, but I came...

    I don't know if it'll work right, but I came across this about a week ago.

    http://www.ticalc.org/archives/files/fileinfo/315/31522.html
  17. Replies
    11
    Views
    2,603

    I only know of a Java to C converter. Would that...

    I only know of a Java to C converter. Would that work for you?
  18. Alrighty, I'll get the rest posted when I get it...

    Alrighty, I'll get the rest posted when I get it done. Thanks for the help so far.
  19. Whoa... it's late and my brain hurts. Thanks,...

    Whoa... it's late and my brain hurts. Thanks, though. I'll try to fix it.
  20. Declaring an instance of a class inside a class

    Here's the code:

    stats.h


    class Stats
    {
    public:
    Stats();
    ~Stats();
  21. Show transport.h please, and maybe I can try and...

    Show transport.h please, and maybe I can try and help.
  22. Thread: Level-Up

    by nickodonnell
    Replies
    7
    Views
    3,396

    OK sounds good. I know it may be overdoing it a...

    OK sounds good. I know it may be overdoing it a little, but is there anyway I could do a subclass of class Hero for each character class? (hehe, confusing)

    Like this:


    class Stats:
    class...
  23. Thread: Level-Up

    by nickodonnell
    Replies
    7
    Views
    3,396

    Thanks, yeah, I'm really getting into classes and...

    Thanks, yeah, I'm really getting into classes and inheritance. Thanks for the tips.

    Edit: Just so I understand a little better...



    class Stats
    {
    public:
    //stuff
  24. Thread: Level-Up

    by nickodonnell
    Replies
    7
    Views
    3,396

    Any tips on how I do that? I've only been...

    Any tips on how I do that? I've only been programming for three days, so I'm not exactly familliar with the language yet. Also, eager to learn!
  25. Replies
    6
    Views
    1,261

    Edit: Nevermind, beat me to it.

    Edit: Nevermind, beat me to it.
Results 1 to 25 of 33
Page 1 of 2 1 2