Search:

Type: Posts; User: Cypher

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,073

    OK, thanks. I did use the search but just for...

    OK, thanks. I did use the search but just for this section. Also, I am using this in C++ and I see that that thread is in the C Programming section. There must be a difference.
  2. Replies
    6
    Views
    1,073

    What exactly would I do with that string? Simply...

    What exactly would I do with that string?
    Simply printing it out in the console won't do anything... or would it..?
  3. Replies
    6
    Views
    1,073

    Using variables in the system function

    How can I use a variable in a system function?
    i.e. I want to make a simple little program that you can put an IP address into the program and it will ping it for you. I would do something like...
  4. Replies
    122
    Views
    13,914

    OK, the program seems to be working just fine...

    OK, the program seems to be working just fine now. Thank you so so so so so much for your help. I understand how frustrating it can be helping a noobie out and I really really appreciate your help....
  5. Replies
    122
    Views
    13,914

    Um, I really don't know what you're talking...

    Um, I really don't know what you're talking about. I remember when I was trying to learn Java there was a command thing "this"
    Is that what you're talking about?
  6. Replies
    122
    Views
    13,914

    OK, what I'm going to try and do is finish up...

    OK, what I'm going to try and do is finish up this game and then do my best to learn more about classes in C++. I really don't understand what you mean by "pass it" and I did try to Google it but I'm...
  7. Replies
    122
    Views
    13,914

    I think I did what you said correctly, I'm...

    I think I did what you said correctly, I'm getting more errors though that I don't know how to fix.

    Compiler: Default compiler
    Building Makefile: "C:\Documents and...
  8. Replies
    122
    Views
    13,914

    Input from anyone would be greatly appreciated.

    Input from anyone would be greatly appreciated.
  9. Replies
    122
    Views
    13,914

    I think I might have done something wrong when I...

    I think I might have done something wrong when I did that.

    The error

    ShopClass.h:12: error: variable or field `ShopMain' declared void
    ShopClass.h:12: error: expected `;' before '(' token
    ...
  10. Replies
    122
    Views
    13,914

    ..and the rest.

    ..and the rest.
  11. Replies
    122
    Views
    13,914

    The only place where I call the MainManager...

    The only place where I call the MainManager function is at the end of the shop and battle classes. They just do manager.MainManager();

    There's really nothing to show. I just think that I'm putting...
  12. Replies
    122
    Views
    13,914

    Initialize the object? That's kind of like doing...

    Initialize the object? That's kind of like doing something like this?

    GameManager manager;
    manager.SomeFunction(initialize a variable, another variable);
    So, if that's what it is, then what do I...
  13. Replies
    122
    Views
    13,914

    Here is my GameManager.cpp file: #include...

    Here is my GameManager.cpp file:

    #include "GameManager.h"
    #include "ShopClass.h"
    #include "BattleClass.h"
    #include <iostream>
    #include <cctype>
    using namespace std;
    ...
  14. Replies
    122
    Views
    13,914

    Alright, I fixed that problem. I had the...

    Alright, I fixed that problem. I had the variables in the MainManager function too, I took them out and it fixed that. I'm still getting that problem where every time the program goes back to the...
  15. Replies
    122
    Views
    13,914

    more files

    more files
  16. Replies
    122
    Views
    13,914

    I have a battle and shop class and ShopMain and...

    I have a battle and shop class and ShopMain and BattleMain are functions in the classes and they call on the AddMoney and other functions in GameManager.

    Did you try the game? The numbers are all...
  17. Replies
    122
    Views
    13,914

    When you say member variables do I just put them...

    When you say member variables do I just put them in with the "private" variables? I really don't know what member variables are and tutorials on Google aren't very helpful with that.

    The program...
  18. Thread: Java vs. C++

    by Cypher
    Replies
    13
    Views
    2,758

    Java vs. C++

    There is always that question of which is better. So I'm asking you guys, why did you choose C++? If you have tried both Java and C++ say so and let me know which you like better and why.
  19. Replies
    122
    Views
    13,914

    So can I just take out the constructor in...

    So can I just take out the constructor in GameManager and declare the variables in the header file?
  20. Replies
    122
    Views
    13,914

    There is no error message

    There is no error message
  21. Replies
    122
    Views
    13,914

    Header File #ifndef GameManager_H_GUARD...

    Header File

    #ifndef GameManager_H_GUARD
    #define GameManager_H_GUARD

    #include "ShopClass.h"
    #include "BattleClass.h"
    #include <iostream>
    using namespace std;
  22. Replies
    122
    Views
    13,914

    This is the constructor where I placed the...

    This is the constructor where I placed the variables.

    GameManager::GameManager() : money(200), lives(3), attack(0), defense(0) {}
    I'm going to be trying different things on my own, but tell me if...
  23. Replies
    122
    Views
    13,914

    bump, I could really use the help on this one.

    bump, I could really use the help on this one.
  24. Replies
    122
    Views
    13,914

    OK, I wasn't using inline before so I didn't need...

    OK, I wasn't using inline before so I didn't need the implementation in the header, so that wasn't the problem.

    I took them out and the program ran now. I don't understand why it didn't run...
  25. Replies
    122
    Views
    13,914

    So if a function is going to be called more than...

    So if a function is going to be called more than once, I need the inline command...

    I am getting linker errors now.
Results 1 to 25 of 66
Page 1 of 3 1 2 3