0

include

include"iostream.h"

int main() {

float chng; printf("oiii..how much change "); cin>>chng;

float a,b,c,d;

chng%25=d; d%10=c; c%5=b; d%1=a; printf("chng:%dquarters%cdimes%bnickels%apennies",d,c,b,a); }

2
  • #include<stdio.h> #include"iostream.h" int main() { float chng; printf("oiii..how much change "); cin>>chng; float a,b,c,d; chng%25=d; d%10=c; c%5=b; d%1=a; printf("chng:%dquarters%cdimes%bnickels%apennies",d,c,b,a); }
    – jatinpunia
    Nov 20 '15 at 13:26
  • 1
    The course is done in C, not c++. iostream is a c++ header.
    – Irene
    Nov 21 '15 at 4:28
0

the iostream.h isn't installed in the appliance or the IDE (whichever you are using). To use it, you would have to get the file and add it to your pset directory ("iostream.h") or to /usr/include directory ( ) along with the other build files that go with it (explained in later lessons.)

But why do you need it? None of the psets in this class had a need for this header file. You probably need the cs50.h file though. They have included a lot of functionality in it to simplify programming in the early stages.

If this answers your question, please click the check mark to accept the answer. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .