ERROR: iostream.h: No such file or directory...‘cin’ was not declared in this scope
I create a simple code for add two number: Code:
#include<iostream.h> Code:
$ c++ sum.c Quote:
I think that is due to I need some package or that I don't install the necessary libraries. Thanks, |
Hi -
"iostream.h" is an anachronism. Modern C++ programs should use "#include <iostream>" instead. Here's an example: Code:
#include <iostream> PS: Of course, maybe you just didn't install the complete development package. For Redhat or Centos, for example, you'd run something like: Quote:
Quote:
|
Thanks paulsm4...
|
All times are GMT -5. The time now is 08:38 PM. |