Re: iostream error.



Neroku wrote:
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.

a) There are no headers named <iostream> or <iostream.h> in C. Your advice is off-topic and
b) your advice is *wrong*. The completely off-topic C++ header is, in fact, named <iostream>.

You seem capable of understanding either that <news:comp.lang.c> is not for other languages or that there is an actual standard for that other language, which your bogus advice contradicts.
.



Relevant Pages

  • Re: OOP and memory management
    ... if the ability to catch some errors at compile time ... > languages; they are very annoying and they don't exist in strongly typed ... > trade off or you can be blinded by typical language adherence fanatacism. ... between catching all type errors at compile time, ...
    (comp.programming)
  • Re: Multi Dimensional Array Reallocation ?
    ... I've never said that everything can be done at compile time. ... >> g) would make Delphi programs run slower, ... would require a symbol table lookup and then a type check. ... specific interest in formal languages and compiler construction. ...
    (alt.comp.lang.borland-delphi)
  • Re: evaluating a string as an expression
    ... to evaluate a string as an expression and I ... The problem here is the difference between compile time and runtime. ... interpreter (which most scripting languages such as ColdFusion, PHP, Perl ... give you access to fields on objects and not local variables. ...
    (microsoft.public.vsnet.general)
  • Re: Using a string as a variable name
    ... construction only works in an interpreted language ... ... resolution should be compile time ... ... Only interpreted languages would be able to do this, ... global object only works for global variables, ...
    (microsoft.public.scripting.jscript)
  • Re: How can my software know when a LX200 has finished slewing?
    ... But strongly typed languages are much better when lives are at stake or for mission critical systems. ... Far better to have programmers typos and common errors detected at compile time than turn it into code that is guaranteed to crash in obscure ways later. ... Ultra high reliability software now has to use a cunning subset of the Ada language. ...
    (sci.astro.amateur)