Thanks for the reply Matt,
Originally Posted by MattNolan
I took what you said and applied it in my code here:
It works nicely.
using namespace std;
void print(int,int); //prototype
cout << "Enter the number of hours: ";
cin >> hrs;
cout << "Enter the number of minutes: ";
cin >> mins;
void print(int hrsOut, int minsOut)
cout << "Time is: " << hrsOut << ":" << minsOut << endl;
I'm not sure if this is considered wrong in any way (that meant, that I could've done it in a better way).