April 20th, 2017, 09:29 AM
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...
April 20th, 2017, 08:55 AM
Windows 10.
Also, thanks for your other post, it fixed my issue. Thanks!
April 19th, 2017, 08:31 PM
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...
April 6th, 2017, 10:38 PM
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...
April 6th, 2017, 07:22 PM
I get this warning:
34803
MY CODE:
class PlayerClass{
public:
int ReturnName(){
return Name;
}
April 1st, 2017, 04:16 PM
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.
April 1st, 2017, 01:29 PM
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??...
April 1st, 2017, 12:50 PM
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...
March 31st, 2017, 02:22 PM
Actually, your other post fixed my code! Thanks!
March 31st, 2017, 02:20 PM
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.
March 31st, 2017, 09:01 AM
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 ...
March 30th, 2017, 09:14 PM
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>...