← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #77858]: iostream.h header file absent

 

Question #77858 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/77858

    Status: Open => Answered

actionparsnip proposed the following answer:
If you use:

#include <iostream>
using namespace std;
void main()
{
  cout << "Hello World\n";
}

Then you avoid it

for cin use something like:

#include <iostream>
using namespace std;
void main()
{
  int age;
  cout << "Please tell me your age : ";
  cin >> age
  cout << "You are " << age*365 << " days old!" << endl;
}

Oh takes me back....

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.