Re: iostream error.




Prasad ha escrito:

Hi All,

I am executing simple hello world program. But, getting compile time
errors.
What is the problem here?

prasad@D-T11673A:~/programs/c> cat bst.cpp
#include<iostream>

It should be #include <iostream.h>, that's why your compiler doesn't
find the iostream header.



using namespace std;

int main ()
{
cout << "Hello World." ;
return 0 ;
}


All this belongs to C++ and not Standard C, bear in mind that we only
discuss the Standard C so this is off-topic here. Asking to
comp.lang.c++ would be more suitable.

.



Relevant Pages

  • Re: Types
    ... This means that although the type system in C is static (known at compile time), it is also extensible, since you can add new types. ... The IEEE 754 standard specifies floating point formats that are used by a majority of current computers. ...
    (comp.lang.c)
  • Re: system function to determine OS
    ... Some information is available at compile time, ... The POSIX fortran routine to get OS information at runtime is ... it is part of an obsolete standard fortran interface to ... POSIX system utility functions. ...
    (comp.lang.fortran)
  • Re: detect non reentrant function
    ... The C standard does not specify anything at all about reentrancy. ... Thus, a signal handler cannot, in general, call standard library ...
    (comp.lang.c.moderated)
  • Re: Program to interface
    ... > afford to loose compile time checks. ... the point of having a language level construct is also to have ... very least, standard diagnostics. ... You dont know what to do when you dont know what you're doing. ...
    (comp.object)
  • Re: iostream error.
    ... Neroku wrote: ... I am executing simple hello world program. ... But, getting compile time ... All this belongs to C++ and not Standard C, bear in mind that we only ...
    (comp.lang.c)