Hi, i need help or advice on how to start a code i have to write. This is the details of the program with an example: http://www2.cs.uh.edu/~acl/cs1410/prog6.pdf
Any help or advice on how to go about this would be greatly appreciated.
//ctime is used to set the random seed.
int main(int argc, char** argv)
using namespace std;
/*Initializes de seed to use the current time
so that the numbers are different each run
of the application*/
/*Check the ASCII code values.
Lowercase goes from a = 97-> z=122
Uppercase goes from A = 65 -> Z=90 */
//rand() returns a number between 0 and RANDMAX
//arbitrarily, I decided to show 40 random letters
char letter = rand()%25 + 65;
Exercise 1: change 65 to 'A'
Exercise 2: change 65 to 'a'
3: Use a number as a seed (instead of the time(NULL) function)
and you'll always get the same succession of random numbers"
4: Test and research
Good luck and remember, be specific when you ask for help and show what you have done so far.
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...