I have gotten my program to compile but it is not running properly. What is wrong? Also how do I incorporate an exit routine.
<code>
#include <iostream>
using namespace std;
int...
Type: Posts; User: cavecrazy
I have gotten my program to compile but it is not running properly. What is wrong? Also how do I incorporate an exit routine.
<code>
#include <iostream>
using namespace std;
int...
Thanks for the advice. I have fixed my problems and it now compiles but the program does not run. I had some of my if statements backwards.
I am producing a program that a user can input a date and the program will output the day it is for that date. I am getting several errors message and I can not figure out where they are in the code....
Where do I need to put this at
I hate to be such a pain. I have tried the suggestions made and my program compiles but when it is executed it will have: Please enter a start time <HH:MM:SS> -->(I enter the start time)
then the...
#include <iostream>
#define SecondsPerHour 3600
#define SecondsPerMinute 60
#define MinutesPerHour 60
int main ()
{
int hh, // hours
I have changed all the suggestions you have made. And I am still getting the same error messages.
I have rewritten the code. Now I am getting the following error message:error C2239: unexpected token '{' following declaration of 'main'. Please help.
I am writing a function that will take time...
Thank for all your help.
I do not understand your post. Please explain
I am writing a function that will take time as three integer arguments (for hours,minutes, and seconds), and returns the number of seconds since the last time the clock "struck 12". I will then use...
:confused:
Could someone point me in the right direction as to how I write this program. I have only been writing for a couple of weeks.
I need to write a program that will determine if a person...