i question the programs they have us do
this one for instance, does nothing really, all it does is tell you when the time is before/after 5
this one for instance, does nothing really, all it does is tell you when the time is before/after 5
// CS107 - Spring 2002 - Assignment #6a - Brock Fansler - Wed 9 am
#include
[Error: Irreparable invalid markup ('<iostream.h>') in entry. Owner must fix manually. Raw contents below.]
i question the programs they have us do
this one for instance, does nothing really, all it does is tell you when the time is before/after 5
<blockquote>
// CS107 - Spring 2002 - Assignment #6a - Brock Fansler - Wed 9 am
#include <iostream.h>
#include "time24.h"
int main()
{
Time24 t1(9,00);
int minuteAdder;
cout << "Time is starting at 9:00. Gimmi some minutes to add in: ";
cin >> minuteAdder;
cout << "Thank you very much!" << endl;
int inMinutes = t1.getHour() * 60 + t1.getMinute();
do
{
if ( inMinutes < 1020 )
{
cout << "Alright Time is before 5:00" << endl;
cout << "Time is currently ";
t1.writeTime();
cout << endl;
t1.addTime(minuteAdder);
inMinutes = t1.getHour() * 60 + t1.getMinute();
}
} while ( inMinutes < 1020 );
cout << endl << "WHOA NELLY! Time is after 5:00" << endl;
cout << "Time is currently ";
t1.writeTime();
return 0;
}</blockquote>
this one for instance, does nothing really, all it does is tell you when the time is before/after 5
<blockquote>
// CS107 - Spring 2002 - Assignment #6a - Brock Fansler - Wed 9 am
#include <iostream.h>
#include "time24.h"
int main()
{
Time24 t1(9,00);
int minuteAdder;
cout << "Time is starting at 9:00. Gimmi some minutes to add in: ";
cin >> minuteAdder;
cout << "Thank you very much!" << endl;
int inMinutes = t1.getHour() * 60 + t1.getMinute();
do
{
if ( inMinutes < 1020 )
{
cout << "Alright Time is before 5:00" << endl;
cout << "Time is currently ";
t1.writeTime();
cout << endl;
t1.addTime(minuteAdder);
inMinutes = t1.getHour() * 60 + t1.getMinute();
}
} while ( inMinutes < 1020 );
cout << endl << "WHOA NELLY! Time is after 5:00" << endl;
cout << "Time is currently ";
t1.writeTime();
return 0;
}</blockquote>
