It'd also be a good idea to use "cout << endl << endl" instead of using a new cout for each endl. Or do as I do, and if you have more than one endl right next to eachother, drop both of them and use...
Type: Posts; User: linkofazeroth
It'd also be a good idea to use "cout << endl << endl" instead of using a new cout for each endl. Or do as I do, and if you have more than one endl right next to eachother, drop both of them and use...
Operating System: WinXP
Compiler (IDE in this case): Dev-C++
Graphics Libraries: None
Other Libraries: iostream, fstream, string
Again, I can't edit my old post... This one isn't much of an...
Holy moly!! It worked! And about half a week of waiting for someone to come up with the right answer! :D
Uh... there's no Options menu in Dev-C++. The foremost menus are "File, Edit, Search, View, Project, Execute, Debug, Tools, CVS, Window", and "Help".
I'm getting a lot of errors along the lines of "[Linker error] undefined reference to `_imp__CreateCompatibleDC@4'. I have the "-lgdi32 -lopengl32 -lglu32 -lglaux -lmingw32" flags in the linker...
I'm using Visual C++ 2005 Express Edition Beta. Do betas not have compilers? -_- Alt F7 didn't do anything.
I mean, how do you get the glut.h file to work? It's confusing...
EDIT: I've downloaded a DevPak for glut at http://old.devpaks.org/show.php?devpak=128, but it's still not working. I get all these...
How do you get OpenGL to work with Dev-C++? If there was some easy installer thing I could use to put everything in the right place, that's be great... :(
What would you suggest as a good graphics library, and where would I download whatever files I need to start using it with C++?
EDIT: And how do you compile using Visual C++?? I can't find a...
Operating system: XP (but should work on anything)
Compiler: Dev-C++ 4.9.9.2
Graphics Library:
Other Libraries:
Description: Text-based rpg with no known bugs, but is unfinished. Playable.
...
Agreed.
Argh, I've missed it! -_-
Well, in C++, headers only contain .h if they are (taking from someone else's post from who I forgot) non-standard or part of the original C library, and if they're part of the C library you add a...
A start would be to change these...
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
...to these...
Like I said, my brain is slow. It's 12 midnight where I am. :(
A "beginner's" contest? Either I'm less than a beginner, or my brain has slowed down tonight. I tried and failed to create such a program. :P
Maybe you should try moving the variable declarations to the public: part of the class? Probably won't work, but hey! :P
Geez, Dae, you take meanings from my posts I never even knew were there...
I let Dev-C++ indent for me, unless an if statement indents too far, then I set it to about 7. Otherwise, it's 4 or 5. So I selected all three options above. :p
I'm unable to decipher what the point is. Do you mean reading in from files and leaving the ifstream open is good, or that it's better to use the ifstream quickly (like you open, use, then close)?
Operating system: XP (but should work on anything)
Compiler: Dev-C++ 4.9.9.2
Graphics Library:
Other Libraries:
Description: Text-based rpg with a few minor bugs and a single bit of Story mode
...
Mostly it's memory usage (I think. I'm not too knowledgable on that subject). Keeping an ifstream open, or repeatedly closing and opening one, could potentially use more memory than you want.
I created my own function for that, too, called monst(). It's incomplete, buuut...
(Oh, and struct statistics isn't a function, it's a struct. Similar to a class, actually.)
void monst() {
...
No, you understood it right. I don't know how to make the program search in a file for a certain value and pull it up (I have a function called load()), so I'm stuck with separate files. Like, if I...
In MY text-based rpg (unfinished, but playable), I define the struct and declare instances of the struct globally, then in the function that creates a character, it saves values to an instance of the...