Like Tree2Likes
  • 2 Post By laserlight

what is the library for cout <<, the compiler is not recognizing it.

This is a discussion on what is the library for cout <<, the compiler is not recognizing it. within the C++ Programming forums, part of the General Programming Boards category; This is what I got when I tried to compile it.. > test.cpp:15: error: ‘cout’ was not declared in this ...

  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    1

    what is the library for cout <<, the compiler is not recognizing it.

    This is what I got when I tried to compile it.. >

    test.cpp:15: error: ‘cout’ was not declared in this scope

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,326
    You should #include <iostream>. Also, keep in mind that cout is from the std namespace.
    Elysia and Polynomial Tu like this.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 04-29-2009, 06:42 AM
  2. Replies: 4
    Last Post: 09-02-2007, 08:47 PM
  3. Easiest 2D drawing library for bloodshed compiler?
    By thunderchief in forum C++ Programming
    Replies: 5
    Last Post: 11-12-2005, 01:25 PM
  4. help with compiler trouble. Cout verification?
    By bigd5 in forum C++ Programming
    Replies: 6
    Last Post: 05-31-2005, 07:22 PM
  5. Recognizing Spaces
    By BigSter in forum C++ Programming
    Replies: 4
    Last Post: 05-25-2002, 01:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21