SQLite Forum

run shell commad in c++
when using sqlite3 in shell, to see a table with headers, we can use .mode to try different views of the table in console. ‚ÄčIs it possible to execute these commands through a c++ console app we can get the same view as we use sqlite3 in shell?
e.g. 	.mode table
	 select * from tbl1;