Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2010
    Location
    Florence, MS
    Posts
    486
    Thanks
    10
    Thanked 33 Times in 32 Posts

    c++ game for practice

    I have recently started learning C++, I am a decent programmer with a major skill in php. I decided that in order to test out my skills I wanna develop a small game for the fun of it.
    I have the concepts all drawn out and some of the coding complete. I was going to see what some of you thought would be the best way to store information to bring back into the game.
    Example: tracking a user's data. Being able to press save and exit out then come back and assume his saved place.

    Would it be better to use a mysql database or files??
    Notice: If you post a problem and it gets fixed, please remember to go back and place it as solved. ;)
    I always recommend the HEAD First series of books for learning a new coding language. ^_^

  • #2
    Regular Coder Taro's Avatar
    Join Date
    Oct 2011
    Location
    Geraldton, Ontario
    Posts
    155
    Thanks
    1
    Thanked 1 Time in 1 Post
    Hello,

    I think it would be better if you put them into files. It is very complex to incorporate C++ with MySQL. Basically the files can be programmed to be saved in the same root folder as the game.
    Element ID

    Webs Support Helper

    Your friendly neighborhood Taroman.

  • #3
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,758
    Thanks
    41
    Thanked 191 Times in 190 Posts
    I would not use files- that is an archaic method; databases are designed to be data repositories and used as such, files are made to house other information.
    ODBC is what you want to research- 'ODBC C++ MYSQL' produces thousands of hits as well as combinations of the three
    Last edited by alykins; 04-30-2012 at 07:13 PM.

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Posting Permissions

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