It works fine on Dev-C++ 4.01.
Type: Posts; User: Eric08
It works fine on Dev-C++ 4.01.
I went through your buggy and messy code and corrected it.
I also noticed that the player classes looked similar to Hexen. If you are trying to do a remake, it was cleric not archer.
Here is the...
You should try http://www.gametutorials.com/
Dev-C++ cannot use interrupts, and I think getting into mode13h is impossible with Dev-C++ since this is not a Dos compiler.
This will not likely work, since many kinds of projects like this have tried and failed, working together should be face to face not on the internet. Not to mention different coding styles. There are...
API uses DLL's, so does DirectX and some other libraries.
Because they don't point to anything, meaning they could crash your program. Also read up on pointers, after you are done you should intialise them to NULL.
Why are you iterating through the string? You're not changing variables. As has been said before you don't need to do it that way, just do this cout<<string; and the whole string will be outputed to...
Actually I beg to differ, the string class is much more flexible than an array. The method to use it is below.
#include <iostream>
#include <string>
#include <stdlib.h>
int main(void)
I found SDL also to be much easier than Direct X, after all it is a wrapper around OpenGL making coding games much easier. You should goto www.libsdl.org for more details.
If you're using a windows compiler simply use
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), c);
where c is the color.
there are 16 possible colors for the foreground and other...
I think I have the answer but it maybe wrong, your mathematical constant had to be e=1+1/1+!2/1+!3/1+!4 thats what I came up with, since I continued getting errors when I attempted your problem...
Syntax errors, you're missing the semicolon somewhere.
Use cout<<" "; as has been said before.
Example of <<endl;
cout<<"this is a string."<<endl; //this creates a new line.
Escape sequences are also allowed as shown.
cout<<"\tthis is a...
\t horizontal tab, \n newline, \r carriage return, some other escape sequences. Escape sequences insert either ASCII characters or formatting characters.
Jan79 wasn't dynamically allocating memory. Jan was using the string class.
Exceptions would prevent a blue screen yes. It would have the option to continue running instead of getting a blue screen.