Trying to figure this out.

I built a program that breaks down breaks and lunches while at work. However I want it to go off of a 12 hour clock. here's what I got so far;

#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;

int main(int nNumberofArgs, char* pszArgs[])
{
int sumSequence;
cout << "Start wok time:";
cin >> sumSequence;

int factor;
factor = sumSequence + 2;
cout << "first break is at:";
cout << factor << endl;

int factor2;
factor2 = sumSequence + 4;
cout << "Lunch is at:";
cout << factor2 << endl;

int factor3;
factor3 = sumSequence +6;
cout << "last break is at:";
cout << factor3 << endl;
system("PAUSE");
return 0;
}

I am a true noob, any help would be most appreciated.
Topic archived. No new replies allowed.