问题
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:
- connect to a database
- 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