Thread: Mysql & C++
View Single Post
Old 04-02-2008, 01:12 PM   #5 (permalink)
Grofit
Link's Dirty Sock
 
Join Date: Jun 2007
Location: UK
Posts: 48
Reputation: 10
MMOFaces Profile: None Yet
Default

As mentioned earlier the reason you use C++ is to interact with the database. MySQL is basically a big file full of data that has a program that can quickly read out certain parts of that file, rather than having to parse the entire thing.

MySQL like most other DB Engines also uses SQL, which is the language it uses to understand queries that you send it, so you would need to learn that as well as C++ if you are unsure about them both.

In C++ you would use a MySQL connector to communicate with this program to insert or retrieve rows, as mentioned by a previous poster. C++ is a programming language so it can do anything from assembly code to making applications, so accessing databases is just like reading a text file. So i wouldnt base a game around being some C++ code that communicates with a database, you will need ALOT more than that to have something classed as a game...
__________________

Grofit is offline   Reply With Quote