View Poll Results: This is a dumb poll but rate how much you like taking polls(oh and dont reply 2 poll)

Voters
4. You may not vote on this poll
  • 1-25%

    0 0%
  • 25-50%

    1 25.00%
  • 50-75%

    2 50.00%
  • 75-100%

    1 25.00%

Saving information

This is a discussion on Saving information within the C++ Programming forums, part of the General Programming Boards category; Ok, suppose you open a program, and it asks you to type a username and a password. How do you ...

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    Question Saving information

    Ok, suppose you open a program, and it asks you to type a username and a password. How do you make it save so next time you open it, when it asks you to log in (yeah best idea i could come up with real fast) how do you get it to remember the username and password?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    A Banana Yoshi's Avatar
    Join Date
    Oct 2001
    Posts
    859
    perhaps make a user list?
    Yoshi

  3. #3
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    perhaps make a user list?



    Hey, im asking the questions
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  4. #4
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    oh, and what is a user list?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    194
    You would have to write the data to a file.
    You can use FILE structs, and functions to manipulate a FILE.
    These are in stdio.h All the functions start with f, such as fread, fwrite, fget, fprintf, fscanf and so on.

    Or you can use ifstream for input, ofstream for output, or an iostream for both input and output.

    http://www.cplusplus.com/ref/iostream/
    http://www.cplusplus.com/ref/

  6. #6
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269
    Ok, i'll try that, but after i play my diablo II game
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 06-01-2009, 08:54 PM
  2. Assignment Help !! (Student information system)
    By ashb in forum C++ Programming
    Replies: 6
    Last Post: 03-12-2005, 05:32 AM
  3. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 07:27 PM
  4. Replies: 4
    Last Post: 04-01-2003, 12:49 AM
  5. Special Allegro Information
    By TechWins in forum Game Programming
    Replies: 12
    Last Post: 08-21-2002, 12:35 AM

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