Thread: cout undeclared?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Did you remember to prefix with std::? E.g. std::cout, std::endl, etc?

    Or you could use the uglier way of "using namespace std;" in both CPP files.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    3
    Ah, namespace is it, fantastic. Not used to namespaces yet, thanks loads for that. I did think it might be something simple and silly I was missing!

    Fast response too!

    Cheers :)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Problem with cout
    By kristentx in forum C++ Programming
    Replies: 2
    Last Post: 04-16-2006, 12:37 PM
  4. 'cout' undeclared indentifier?
    By axon in forum C++ Programming
    Replies: 15
    Last Post: 09-22-2003, 03:48 PM
  5. I'm REALLY confused. Why isn't cout or cin working here?
    By niudago in forum C++ Programming
    Replies: 8
    Last Post: 02-15-2003, 05:53 PM