So this is the problem I'm tackling:
Create 2 Time Objects.
1 Time object should be instantiated using the default constructor.
1 Time object should be instantiated using the constructor that requires hours, minutes and seconds. Read data from keyboard.
Find the difference in hours, minutes and seconds between the two Time objects.
Now!
to create the first time object I use
Time timeOne ();
for the second one I thought I needed to declare one which gave me: Time timeTwo (int h, int m, int s);
is that wrong?
I was thinking about asking for user input and setting it...as in:
#include <iostream>
usingnamespace std;
#include "ccc_time.h"
#include "ccc_empl.h"
#include "ccc_time.cpp"
#include "ccc_empl.cpp"
#include <iostream>
#include <cmath>
#include <string>
#include <stdlib.h>
#include <ctime>
//Function Prototypes
// main function **********************************************************
int main ()
{
//create timeone via default constructor
//create timetwo via user input
Time timeOne ();
Time timeTwo (int h, int m, int s);
int hours, minutes, seconds;
cout << "Enter hour" << endl;
cin >> hours;
cout << "Enter minutes" << endl;
cin >> minutes;
cout << "Enter seconds" << endl;
cin >> seconds;
timeTwo.set_Time (int hours, int minutes, int seconds);
//Create function to find difference in hours, minutes, and seconds between
// the two times.
//Declare minuteone, minutetwo, etc,etc
//Display:
// a. timeone
// b. timetwo
// c. difference between the two times
// End of program statements
cout << "Please press enter once or twice to continue...";
cin.ignore().get(); // hold console window open
return EXIT_SUCCESS; // successful termination
}