Having just a few problem with bring the difference of time times back into this form HH: MM:SS. I am required to you % , and fill the remaining space with 0's. Some of my code is just previous rambling that I turned into comments. Any ideas would be of great help.
#include <iostream>
#include <iomanip>
int main()
{
int hrs1 = 0;
int min1 = 0;
int sec1 = 0;
int hrs2 = 0;
int min2 = 0;
int sec2 = 0;
int time1 = 0;
int time2 = 0;
int x = 0;
std::cout << "enter a first time";
std::cin>> time1;
std::cout << "enter a second time";
std::cin>> time2;
hrs1 = time1 / 10000 * 60 * 60;
min1 = time1 / 10000 % 100 * 60;
sec1 = time1 % 100;
hrs2 = time2 / 10000 * 60 * 60;
min2 = time2 / 10000 % 100 * 60;
sec2 = time2 % 100;
x = (hrs1 + min1 + sec1) - (hrs2 + min2 + sec2);
//hrs = time2 / 10000 * 60 * 60;
//min = time2 / 10000 % 100 * 60;
//sec = time2 % 100;
//time1 = time1 / 10000 * 60 * 60 + time1 / 10000 % 100 * 60 + time1 % 100;
//time2 = time2 / 10000 * 60 * 60 + time2 / 10000 % 100 * 60 + time2 % 100;
//timeRemaining = time1 - time2 ;
std::cout << std::setfill('0') << x % 100000 /60 << ":" << x % 1000 / 10 << ":" << x % 60;