Code:
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <cstring>

using namespace std;

main(){
int hour;
int minute;
int second;

cout<<"Please enter the current hour...\n";
cin >> hour;
cin.get();
cout<<"Thanks, now please enter the minute\n";
cin>>minute;
cin.get();
cout<<"Setting time...\n";
cin.ignore();
second = + 1;
if (second > 59) {
minute + 1;}
if (minute > 59) {
hour + 1;}
if (hour > 24) {
hour = 0;
minute = 0;
second = 0;
}
if (hour > 0 && minute > 0)
{cout<<"The time is "<<hour<<":"<<minute<<":"<<second<<" tick tock tick tock!\n";
}
}
Behold my new quick 5 minute problem today! Okay so I figured this might actually work unfortunatley I was wrong once again. Clearly I have not tried to create a properly functioning clock however I was hoping I could set a time and it would display it and also count upwards. I figured I would rather share this with you guys and ask for advice on how to make this better and actually get it to function how I originally wanted rather than sitting here smashing my face through my desk. Thanks.