Chen said:
"jacob navia" <
[email protected]>
??????:
[email protected]...
I have a reference book "C/C++ lib" which tells me that this pototype is in
"iostream.h". But now it is not there.
Jacob already answered the rest of your question.
There are two languages, C and C++. Parts of C++ _look_ similar
to C and C++ defines its relationship to C with respect to
linkage. Do not mix the two of them unless you know exactly what
you are doing.
The C++ standard library incorporates the C90 standard library
but by other header names in order to disambiguate between C
and C++ headers.
You obviously got information about a method of a C++ class,
not a function. You probably would have to use it like
cin.getline() or something like that. As it is C++, you
ought to ask for advice in comp.lang.c++ if you want to write
C++.
If you want to write C, then there is no standard C library
function getline() and you can go with fgets() or ggets() as
I mentioned elsethread if you want to stay on the safe side.
Or, if you want to use getline(), you have to obtain it from
somewhere and use it according to its documentation.
Cheers
Michael