+ 3
How to use SQL in C++
Can I use SQL in the struct?
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/
+ 3
Tnx♥