Hi!
I don't know hot to access to a database with c++...
can anyone tell me the way?...
thank you all.
Printable View
Hi!
I don't know hot to access to a database with c++...
can anyone tell me the way?...
thank you all.
It has to be windows and unix compatible...
Well, er, I'm not sure if this is Unix compatible, and if not, sorry, but you could just make a file that holds all the info.
BrendanCode:ofstream out("dataBase.dab",ios::app);
out << data << endl;
...
ifstream in("dataBase.dab");
in >> data >> endl;
The window and unix compatibility is the problem here, I dont know of any which cover both (except if you was to use java;))
I needed to make a database for my game before. Sounded too hard, so I just made classes and used that for it. It's pretty effective I think.. but still not as easy to update as a database.