Saving

This is a discussion on Saving within the C++ Programming forums, part of the General Programming Boards category; I'm making an RPG and I need to save some information, like the character's stats and stuff. Can some1 give ...

  1. #1
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Question Saving

    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
    C++ was my first language, english is my second.

  2. #2
    UNBANNED OneStiffRod's Avatar
    Join Date
    Jan 2002
    Posts
    669
    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..."

  3. #3
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Talking Thanks

    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!

  4. #4
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    learn how to use ifstream and ofstream

  5. #5
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    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

  6. #6
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    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
    He uses void main()!! Salem and I are gonna go kidnap and brain-wash him; commando style. Booya!

  7. #7
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    While on topic...

    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?

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789

    Re: While on topic...

    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?
    If its the Sleep function I know, then <windows.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to C++ problem saving files
    By wesm in forum C++ Programming
    Replies: 2
    Last Post: 11-02-2005, 01:00 PM
  2. Replies: 2
    Last Post: 06-16-2005, 10:03 AM
  3. saving a binary tree??
    By fayte in forum C++ Programming
    Replies: 9
    Last Post: 01-27-2005, 12:32 PM
  4. Saving vectors of structures problem
    By redeck in forum C++ Programming
    Replies: 4
    Last Post: 12-09-2004, 03:47 PM
  5. File saving problem in DevC++ pls help ???
    By intruder in forum C Programming
    Replies: 3
    Last Post: 12-17-2002, 12:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21