CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: TheRedSpy

Search: Search took 0.02 seconds.

  1. Re: [RESOLVED] Why does ShipHealthequal one thing and then it equals some random numb

    Because I'm so used to using #include <unistd.h> (as well as other linux header files) and finding an alternative header file is kinda a pain. Also, I prefer to stay away from visual studio as I'm...
  2. Re: Why does ShipHealthequal one thing and then it equals some random number every ti

    Windows 10.

    Also, thanks for your other post, it fixed my issue. Thanks!
  3. [RESOLVED] Why does ShipHealthequal one thing and then it equals some random number every time?

    I'm Making a text based Naval SIM (and is in VERY early stages), and I'm trying to set a ship's health, which works fine in the beginning of the program, but equals a random number. I have tried to...
  4. Replies
    3
    Views
    3,317

    Re: weird warning?

    sorry.. forgot to paste my code (I even put the
    , just didn't paste it in...)
    heres my class:
    [CODE]class PlayerClass{
    public:
    int ReturnName(){
    return Name;
    }
    int...
  5. Replies
    3
    Views
    3,317

    [RESOLVED] weird warning?

    I get this warning:
    34803

    MY CODE:

    class PlayerClass{
    public:
    int ReturnName(){
    return Name;
    }
  6. Replies
    4
    Views
    3,572

    Re: File loading help

    You fixed my code again! I changed ofstream to fstream and I realized it wasn't actually saving the values for the Monster rather the look and stats.
  7. Replies
    4
    Views
    3,572

    Re: File loading help

    1:
    creating the objects

    //SAVED MONSTER OBJECT
    ofstream saveMobj("Monsters.txt");
    ifstream readMobj("Monsters.txt");

    asking if you want to load

    cout<<"do you want to load your Monster??...
  8. Replies
    4
    Views
    3,572

    [RESOLVED] File loading help

    I'm still a beginner to c++ and just learning how to read and write files. I've tried to add a way to save and load Monsters. The saving part saves it until the next time I run the program. And the...
  9. Replies
    7
    Views
    1,429

    Re: Beginner needs help

    Actually, your other post fixed my code! Thanks!
  10. Replies
    7
    Views
    1,429

    Re: Beginner needs help

    I don't know, that just popped up when I did it. My code is working now though. I stilling learning to use the debugger.
  11. Replies
    7
    Views
    1,429

    Re: Beginner needs help

    I actually tried my debugger, and I get:

    => 0x00000000004728f0 <+0>: mov rdx,QWORD PTR [rdx]
    0x00000000004728f3 <+3>: mov r8,QWORD PTR [rdx-0x18]
    0x00000000004728f7 <+7>: jmp ...
  12. Replies
    7
    Views
    1,429

    [RESOLVED] Beginner needs help

    Why does my program crash. Also why does HE's(health) value so ridiculously high? One more question, why is at (attack) equal to 1 all the time?
    My code:

    #include <iostream>
    #include <ctime>...
Results 1 to 12 of 14





Click Here to Expand Forum to Full Width

Featured