demonstrate
demonstrate how to connect to a sqlite
HOW TO SUBMIT YOUR ASSIGNMENT
At the top of each of your C++ programs, you should have at least four lines of documentation:
Program name (the C++ file name(s)), Author (your name), Date last updated, and Purpose (a brief description of what the program accomplishes). Here is an example:
/* Program name: jbtictactoe.cpp
* Author: John Doe
* Date last updated: 5/1/2017
* Purpose: Play the game of Tic-Tac-Toe
*/
ASSIGNMENT: Database Connection
Fact Database ER Diagram
Write a program that opens a connection to the FACT database factdb.db Download factdb.db. If the connection doesn't open successfully print an error message from the database and end the program, otherwise print a success message. Then use a callback function to print the results of a select query (any select query of your choice) and close the database.
To submit your assignment:
Submit your source code file (*.cpp)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps