How to use a database with c++ [closed]

纵饮孤独 提交于 2019-12-20 07:53:54

问题


What I want to know is how I can create a c++ application using dev-c++ to connect to and let me query a database to get back information from the database. For this I would preferably like to stick to using an MS Access database as my program only needs basic functionality right now.

I need this program to:

  1. connect to a database
  2. allow me to read and write to that database.

How would I do this in c++.

I have done research into how to do this however I could find nothing of use. Some code would be appreciated however any resources given to me will also be used.

Please ensure that if some code is used it is clearly laid out (maybe with a couple of comments so I can use this code to learn from as well) and make sure that the name of the database is clear too.

I appreciate all of the help :)

来源:https://stackoverflow.com/questions/59377011/how-to-use-a-database-with-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!