Discussion: cin src
Afficher un message
Vieux 17/10/2007, 11h49   #2
Neelesh Bodas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cin src

On Oct 17, 3:39 pm, Americ...@gmail.com wrote:
> Hello, I am new to C++ and I had a question I couldn't seem to find a
> answer to. I want to see the source of cin, I am running Linux and I
> went into /usr/include and didn't find anything retaining to cin. Is
> there even a source file for cin? I would assume so since it's a
> function...
>
> Thanks for your time.


The contents of istream class can be seen in <iostream> header. Its
declaration can be found in <iostream>
extern istream cin;

The contents of class istream can be found in header <istream>. class
istream is actually a typedef.
typedef basic_istream<char> istream

-N

  Réponse avec citation
 
Page generated in 0,05579 seconds with 9 queries