couting cout.

Discussion in 'C++' started by Chris Schumacher, Apr 13, 2004.

  1. I've noticed that when you cout cout (or cin) it gives you a series of
    bytes.
    Does anyone know what these bytes mean?

    (cut and paste for those who want a look)
    #include <iostream>

    using namespace std;

    int main()
    {cout << cout << endl;
    cout << cin << endl;


    return 0;}


    -==Kensu==-
    I was trying to build a "typerwriter" program, okay?
     
    Chris Schumacher, Apr 13, 2004
    #1
    1. Advertising

  2. Chris Schumacher

    Buster Guest

    Chris Schumacher wrote:
    > I've noticed that when you cout cout (or cin) it gives you a series of
    > bytes.
    > Does anyone know what these bytes mean?


    Streams have an implicit conversion to void *. It returns a null
    pointer if fail () is true and a non-null pointer otherwise. The
    non-null pointer's value is not specified, AFAIK. On my system
    it seems to be the address of some subobject or data member of
    the stream.

    --
    Regards,
    Buster.
     
    Buster, Apr 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. abi

    man cout or info cout

    abi, Jun 27, 2003, in forum: C++
    Replies:
    2
    Views:
    1,660
  2. Pmb

    std::cout vs cout

    Pmb, Jun 2, 2004, in forum: C++
    Replies:
    2
    Views:
    4,428
    Leor Zolman
    Jun 2, 2004
  3. Replies:
    4
    Views:
    327
    Howard
    Sep 15, 2005
  4. Stefan Ram

    Re: cout vs std::cout

    Stefan Ram, Sep 28, 2008, in forum: C++
    Replies:
    7
    Views:
    500
  5. Hendrik Schober

    Re: cout vs std::cout

    Hendrik Schober, Sep 28, 2008, in forum: C++
    Replies:
    7
    Views:
    452
    Jerry Coffin
    Oct 7, 2008
Loading...

Share This Page