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

On Oct 17, 3:49 pm, Neelesh Bodas <neelesh.bo...@gmail.com> wrote:
> 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;


Typo. Meant this -

cin is an object of istream class. The declaration of cin can be
found in <iostream> header.
extern istream cin;

-N


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