creating a class with sqlite database..

Feb 13, 2014 at 5:59am
I am using Qt creator ide with pure c++ coding. I need to create a class with 2 member variables A & B (also added in the table)and 3 public and private functions.
public functions: to check whether database exists ,if exists open and read data A & B else call the 3 functions from private.2nd function is to generate a 26 char array and store in 25 digit no. using srand() return it - getA().3rd function is to take sha256 hash concating 2nd function + timestamp - getB().
Private functions: to create an sqlite database,to initialise a basic table structure (char A|char B|blob C).3rd functon is to generate details to store to databse and also to A & B. both getA() and getB() is called from this function to generate details.

How can i define the public functions mentioned in the question ( using srand() & sha256 library) ?

Last edited on Feb 13, 2014 at 10:16am
Feb 13, 2014 at 7:13am
Somebody answer.....
Feb 13, 2014 at 7:19am
What are we supposed to answer there was no question.

Is there a particular thing you are having a problem with?

Another thing to mention you generally should wait more than a hour to bump...
Last edited on Feb 13, 2014 at 7:20am
Feb 13, 2014 at 9:47am
How can i define the public functions mentioned in the question ( using srand() & sha256 library) ?
Last edited on Feb 13, 2014 at 10:15am
Topic archived. No new replies allowed.