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 stuffC++ was my first language, english is my second.
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 stuffC++ was my first language, english is my second.
It's called serialization. You can probably find info here...
http://www.gametutorials.com/
My Avatar says: "Stay in School"
Rocco is the Boy!
"SHUT YOUR LIPS..."
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!
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!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?
If its the Sleep function I know, then <windows.h>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?