与c ++中的简单数据库交互? [英] Interacting with a simple database in c++?

查看:150
本文介绍了与c ++中的简单数据库交互?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用c ++制作游戏,需要存储和检索关于玩家的信息(姓名,电子邮件,高分等)。我想用XML自己做,但我认为一个真实的数据库SQL

I'm making a game in c++ that will need to store and retrieve information about players (name, email, high score) etc. I thought of trying to just do it myself with XML but I think a real database (maybe SQL?) would do a better job since over time there may be thousands of users.

有库可以与数据库进行简单的交互,如查询,检索信息和存储信息?

Are there libraries to do simple interactions with databases like queries, retrieving information, and storing information?

感谢

推荐答案

http://www.sqlite.org/\"> SQLite 会做到这一点。它将数据库存储为本地文件,因此,如果您想要一个在线数据库服务器,那么这可能不是最好的选择。

Yes, SQLite will do exactly this. It stores the database as a local file, so if you want an online database server then this is perhaps not the best option.

这篇关于与c ++中的简单数据库交互?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆