Got ques

This is a discussion on Got ques within the Windows Programming forums, part of the Platform Specific Boards category; when i enter std::cout<< doesnt work but cout<< works this may be weird ques but which is better to use ...

  1. #1
    Unregistered
    Guest

    Got ques

    when i enter std::cout<< doesnt work but cout<< works this may be weird ques but which is better to use the book im reading has st:: infront of everything is this new or old

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    381
    You really have to post more code than that.
    At first guess i'd say it was a problem with the header your using. You probbly have made the mistake of putting:
    #include <iostream.h>
    That specifies the old C header file. In order to use the std namespace you have to include the C++ equivilant with:
    #include <iostream>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need the code of few programs in c++.plzzzzz help...plzzz
    By NAVINKR20 in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2009, 09:13 AM
  2. Short ques
    By Zionaster in forum C++ Programming
    Replies: 4
    Last Post: 07-11-2003, 04:38 AM
  3. simple rand() ques.
    By Beginner2002 in forum C Programming
    Replies: 1
    Last Post: 07-28-2002, 05:42 PM
  4. ques
    By tim in forum C Programming
    Replies: 1
    Last Post: 04-22-2002, 10:06 AM
  5. ques on what to focus on?
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 04-19-2002, 11:09 AM

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