Thread: Just Help Me Store The Data?!?!?!?

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    11

    Question Just Help Me Store The Data?!?!?!?

    ok...i'm trying to create a program where a user's data can be kept....i've attached the program...can someone try and help me....in code, not just in writing??????

  2. #2
    Registered User lliero's Avatar
    Join Date
    Oct 2001
    Posts
    59

    hi

    i had extracted some code snippet...




    int main ()
    {
    FILE *f;
    f = fopen(name, "r+");
    intro();
    if(intro() != 1)
    init();
    options();
    fclose(f);
    return 0;
    }


    you see in main function, you declared FILE *p but never used it.
    as of now i cant go over to your code, but try this main at least

    int main ()
    {
    int i;
    FILE *f;
    f = fopen(name, "r+");
    i=intro();
    if(i != 1)init();
    options();
    fclose(f);
    return 0;
    }

    i'll try to look again at your code later
    " programming is 1% syntax and 99% logic "

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    11
    ok...i can open using fopen, but can anyone actually help me in terms of writing up data in the program, which would be saved for any user and then when the user returns, all their initialised data entries are saved and ready for them to continue with the program???

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. data read and store
    By jammi in forum C++ Programming
    Replies: 1
    Last Post: 12-30-2002, 04:39 PM
  4. C Programming Question
    By TK in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 07-04-2002, 07:11 PM
  5. Do you store store one off data arrays in a class?
    By blood.angel in forum C++ Programming
    Replies: 5
    Last Post: 06-24-2002, 12:05 PM