Source file cannot compiled (dev-c++)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zarinah80
    New Member
    • Jul 2010
    • 1

    Source file cannot compiled (dev-c++)

    Need advise from the expert in programming using "DEV C++, from this programming i cannot compiled the data.

    Code:
    #include<iostream.h>
    #include<conio.h>
    
    void main()
    {
         int age;
         count<<"\n enter the age:";
         cin>>age;
         count<<"\n your age"<<age<<"years old";
          
          getch();
    
    }

    Thanks
    Last edited by Niheel; Jul 31 '10, 05:41 PM. Reason: added code tags to code
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    What error are yoyu getting?

    I can see that you should be using iostream and not iostream.h and that conio.h is not needed in C++.

    Comment

    Working...