Thread: Got ques

  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
    363
    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, 10:13 AM
  2. Short ques
    By Zionaster in forum C++ Programming
    Replies: 4
    Last Post: 07-11-2003, 05:38 AM
  3. simple rand() ques.
    By Beginner2002 in forum C Programming
    Replies: 1
    Last Post: 07-28-2002, 06:42 PM
  4. ques
    By tim in forum C Programming
    Replies: 1
    Last Post: 04-22-2002, 11:06 AM
  5. ques on what to focus on?
    By Unregistered in forum C++ Programming
    Replies: 5
    Last Post: 04-19-2002, 12:09 PM
Website Security Test