I'm making an RPG and I need to save some information, like the character's stats and stuff. Can some1 give an easy to follow (with comments) code sample on how to save stuff:cool:Quote:
C++ was my first language, english is my second.
Printable View
I'm making an RPG and I need to save some information, like the character's stats and stuff. Can some1 give an easy to follow (with comments) code sample on how to save stuff:cool:Quote:
C++ was my first language, english is my second.
It's called serialization. You can probably find info here...
http://www.gametutorials.com/
Finally! Someone who answers the question. Not someone who stands around telling me about going to sites and all that...
Anyway, thank you sooooo much! :D :D :D :D :D :D :D :D :D :D
learn how to use ifstream and ofstream
Well I don't think it's hard, I you need to know file i/o then choose a format to save the information, then do it.
do you need anything else.
A simple file i/o tutorials will do.
Try this link:
http://www.cpp-home.com/loobian/tuto...e_io/index.php
I like this tutorial
He uses void main()!! Salem and I are gonna go kidnap and brain-wash him; commando style. Booya!Quote:
Originally posted by ammar
Well I don't think it's hard, I you need to know file i/o then choose a format to save the information, then do it.
do you need anything else.
A simple file i/o tutorials will do.
Try this link:
http://www.cpp-home.com/loobian/tuto...e_io/index.php
I like this tutorial
Since we're talking about headers, etc. I was wondering, is there a header file I need to include to use the Sleep function, and would it be time.h?:confused:
If its the Sleep function I know, then <windows.h>Quote:
Originally posted by Stan100
Since we're talking about headers, etc. I was wondering, is there a header file I need to include to use the Sleep function, and would it be time.h?:confused: