Hello guys, I did the first part of creating a amazing clock, that allows user to input the time. And whatever time they input they get an event or not. Here is what I have so far.
#include <iostream>
#include <string>
#include <sstream>
#include <iomanip>
using namespace std;
const char colon = ':';
int hours;
int minutes;
void getTime(int &, int &);
bool Valid(int, int);
I been getting some errors, and I cannot format it where you have to input in one line (ex. 12:11) and any other input in the 12 hour format is invalid, like negative time, -1: , : , 1:1, and stuff like this. Can anyone help me?