SQLite 和 C++ 入门? [英] Getting started with SQLite and C++?

查看:39
本文介绍了SQLite 和 C++ 入门?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我正在制作的在线游戏,我需要能够将用户及其统计信息添加到数据库中,一个示例表:

For an online game I'm making, I need to be able to add users and their stats to a database, an example table:

用户名、密码、邮箱、赢、输

Username, Password, Email, Wins, Loses

用户名将是唯一键,我需要从那里检索其他信息.

The username will be the unique key, and from there I need to retrieve the other information.

我还需要做其他事情,例如找到给定电子邮件的所有用户名.

I also need to do other things such as find all the usernames with a given e-mail.

我找了几个小时的 SQLite 教程来展示 C 或 C++ 如何完成这些简单的任务.

I have been searching for a few hours for an SQLite tutorial that shows C or C++ on how to do these sorts of simple tasks.

有人可以推荐这样的教程,或者可能对使用 SQLite 库执行上述某些任务有一些见解吗?

Could anyone recommend a tutorial like this or possibly some insight on performing some of the above tasks with the SQLite library?

谢谢

推荐答案

SQLite 文档相当不错:

The SQLite documentation is quite good:

这篇关于SQLite 和 C++ 入门?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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