Welcome to Dream.In.Code
Become a C++ Expert!

Join 136,933 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,863 people online right now. Registration is fast and FREE... Join Now!




Schedule

 
Reply to this topicStart new topic

Schedule

slimdime
16 Mar, 2008 - 04:56 AM
Post #1

New D.I.C Head
*

Joined: 15 Mar, 2008
Posts: 22

I'm getting this error when I compile this program, error =
fatal error C1083: include file: 'iostream.h': No such file or directory.

schedule - 1 error(s), 0 warning(s)
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped

CODE

// Program Schedule prints a daily schedule with the

// amount of time spent on each task.

#include <iostream.h>

const int DRESS = 45;

const int EAT = 30;

const int DRIVE = 30;

const int CLASS = 60;

int main()

{

int totalMinutes;

totalMinutes = DRESS + 3*EAT + 2*DRIVE + 4*CLASS;

cout << "You spend " << totalMinutes / 60

<< " hours and " << totalMinutes % 60

<< " minutes a day on scheduled activities."

<< endl;

return 0;

}



if you can compile please post the output here. thanks!
User is offlineProfile CardPM
+Quote Post

letthecolorsrumble
RE: Schedule
16 Mar, 2008 - 04:59 AM
Post #2

Student of The Sun
Group Icon

Joined: 7 Nov, 2007
Posts: 550



Thanked: 1 times
My Contributions
#include <iostream.h>

try using

#include <iostream>
User is offlineProfile CardPM
+Quote Post

slimdime
RE: Schedule
16 Mar, 2008 - 05:53 AM
Post #3

New D.I.C Head
*

Joined: 15 Mar, 2008
Posts: 22

thanks!! that worked.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 10:40PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month