Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2
Author Message
 Post Posted: December 19th, 2017, 12:57 am 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3538
Location: Japan
The code you got there looks fine. Of course as papa says the new/delete for db is not necessary. In general we only do that when we have a definite reason to do so. I think I show doing new Database in tutorial 5 just as an example of newing a single object, but I also say in that same video that we wouldn't want to actually do so and I revert it.

The other thing is, I believe in the assignment the database we create stores int data and string data, but you're only storing string data, so you're not getting the practice with things like reinterpreting pointers/reading binary data into memory.

_________________
Chili


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron