
Newbie question: C++ beginner question
Nope. There are versions of iostream with and
without the .h extension. They are the older
and new versions, respectively. Since the
#using namespace std was in there, the non-dot-h
version is appropriate. As others have said,
the problem is a "1" (numeral one) where
a "l" (letter l) is required. It should be endl not end1.
--
Dan Evens
(Standard disclaimers etc. No spam please.)
Quote:
> You also need to add .h to the include line like this:
> #include <iostream.h>
> >Hi my name is Mario,
> >I just started to programme in C++ today and i tried to do this small
prog,
> >Hello Word!
> >// Hello world example
> >#include <iostream>
> >using namespace std;
> >int main()
> >{
> >cout << "Hello World!" << end1;
> >return 0;
> >}
> >and when i compile it, it gives me the following erreur.
> >--------------------Configuration: Hello - Win32
Debug--------------------
Quote:
> >Compiling...
> >Hello.cpp
> >D:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\MyProjects\Hello\Hello.cpp(7) :
> >error C2065: 'end1' : undeclared identifier
> >Error executing cl.exe.
> >Hello.exe - 1 error(s), 0 warning(s)
> >Can you tell me why and what`s the mistac.
> >Mario