I have a program running for a university project (1st year at uni of central lancashire, preston, england baby yeh...
everything works fine, its a carpet shop program that calcs the prices etc then asks for a delivery date....
which it then converts to three strings, and then to integers for seperate day / month / year (need this as it is,
so dont say i should change it...)
cout << "\nPlease enter the preferred date of delivery, in the format DD/MM/YYYY: \n";
cin >> Date;
DayStr[0] = Date[0];
DayStr[1] = Date[1];
DayStr[2] = '\0';
^^ same for month and years ^^
i then get the date n time from the system using time_t now;
how can i subtract the currrent date from the delivery date so i can print to be delivered in x days?
any help welcomed :D
2006-11-19
04:35:32
·
3 answers
·
asked by
jimmyhigginz
1
in
Computers & Internet
➔ Programming & Design