+ 3

How to use SQL in C++

Can I use SQL in the struct?

23rd Dec 2019, 6:53 AM
Ali Pishro
Ali Pishro - avatar
3 odpowiedzi
+ 2
I'm not sure how this is related to structs. They are basically a remnant of C that still exists because C++ is a superset of C, but there is little reason to use them unless you absolutely have to. Since C++ added OOP support, classes are generally used instead of structs. On the topic of connecting to a database from C++, you should look up ODBC and OLE DB. However, if you are okay with using sqlite (data stored as .db files, Firefox does this for example to save your profile settings), that's probably easier: https://www.geeksforgeeks.org/sql-using-c-c-and-sqlite/
24th Dec 2019, 3:05 AM
grdr
+ 3
Tnx♥
24th Dec 2019, 8:00 AM
Ali Pishro
Ali Pishro - avatar