Thread: My program is still missing something...

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    1

    Question My program is still missing something...

    Code:
    #include <iostream>
    using namespace std;
     
     
    #include "StdAfx.h"
    
    
    #include <iostream>
    using namespace std;
     
     
    int main() {
        double quarters, dimes, nickles, pennies;
     
        cout << "Enter the number of quarters you have  :";
        cin  >> quarters;
        cout << "\nEnter the number of dimes you have   :";
        cin  >> dimes   ;
        cout << "\nEnter the number of nickles you have :";
        cin  >> nickles ;
        cout << "\nEnter the number of pennies you have :";
        cin  >> pennies ;
     
     
        cout << quarters << " " << dimes << " " << nickles << " " << pennies << " " << endl;
     
        double money = .0; // amount of money i have
        //money = (quarters * .25) + (dimes * .10) + (nickles * .05) + (pennies * .01);
     
        cout << "total        : $" << money << endl;
     
        return 0;
    }

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    ...And what is your question?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what am I missing? (Program won't compile)
    By steals10304 in forum C Programming
    Replies: 3
    Last Post: 08-25-2009, 03:01 PM
  2. I am missing something in regards to min?
    By BSmith4740 in forum C Programming
    Replies: 5
    Last Post: 06-14-2008, 11:26 AM
  3. Error running program in cmd - cygwin.dll missing -
    By JFonseka in forum C Programming
    Replies: 5
    Last Post: 08-27-2007, 12:12 PM
  4. Missing something in dayofweek program
    By s_ny33 in forum C Programming
    Replies: 2
    Last Post: 11-15-2005, 10:34 AM
  5. Compile Program missing .lib file have .dll
    By John Hobbes in forum C++ Programming
    Replies: 1
    Last Post: 11-19-2004, 05:52 PM

Tags for this Thread