Ya boi came through
This commit is contained in:
parent
6be7af0933
commit
4294d4e68c
@ -11,9 +11,22 @@ include_directories(
|
||||
|
||||
add_executable(park main.cpp data.cpp headers/data.h Customer.cpp headers/Customer.h Park_spot.cpp headers/Park_spot.h Park_time.cpp headers/Park_time.h)
|
||||
|
||||
target_link_libraries(park
|
||||
|
||||
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(park
|
||||
SQLiteCpp
|
||||
sqlite3
|
||||
pthread
|
||||
dl
|
||||
)
|
||||
elseif (MSYS OR MINGW)
|
||||
target_link_libraries(park
|
||||
SQLiteCpp
|
||||
sqlite3
|
||||
pthread
|
||||
ssp
|
||||
)
|
||||
endif()
|
||||
|
||||
|
5
main.cpp
5
main.cpp
@ -33,7 +33,8 @@ int main() {
|
||||
|
||||
SQLite::Database db = data::start_db();
|
||||
// see implementation of update_db, save_db and delete_db of customer to see how queries and statements work
|
||||
Customer sagar{"Ramsaransing", Verhicle_type::medium, db};
|
||||
Customer sagar{"Sagar Winston Ramsaransing", Verhicle_type::medium, db};
|
||||
sagar.update_db(db);
|
||||
sagar.delete_db(db);
|
||||
cout << "THIS WRKS";
|
||||
// sagar.delete_db(db);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user