CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    7

    Saving Program State

    Hey guys is it possible to make a console app with a database? or is there an easier way of doing this.

    Ok say i have a list of things i need to get:

    Eggs
    Milk
    Chicken
    Pear
    Gurkins etc

    if i make the app display them as a list and say i have gotten the eggs maybe i will type in:

    Got Eggs and then it will delete them so for example if i restart the app to show me the list it will show what i have except the eggs.

    Hope someone can help and sorry for the randomness lol

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: Saving Program State

    Sounds like a simple text file would do.

  3. #3
    Join Date
    Nov 2009
    Posts
    7

    Re: Saving Program State

    Thanks for teh fast reply do u have any good links u i could learn how to create, Read, Update and delete CRUD

  4. #4
    Join Date
    Jan 2008
    Location
    California, USA
    Posts
    822

    Re: Saving Program State

    Quote Originally Posted by JonnySnip3r View Post
    Hey guys is it possible to make a console app with a database?
    Yes, that's what the APIs are for
    Look uphttp://en.wikipedia.org/wiki/Flat_file_database
    and
    http://www.cplusplus.com/reference/iostream/fstream/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured