Thread: Help needed

  1. #16
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by LloydUzari
    Nope, waste of typing 5 more letters before each function
    I know what you mean though.
    or you could just put "using namespace std;" after your include statements, or even "using std::cin;".

  2. #17
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    Boy, this is a popular topic around here lately. Check Including namespaces for my thoughts on the subject. Cliffnotes version: worrying about typing five extra characters instead of looking up the real positives and negatives behind which headers to use doesn't bode well for the quality of your code in the future, in my opinion.

    Also, The <iostream.h> and <fstream.h> are not deprecated. Deprecated means that they are part of the standard, but are old and should be phased out of your programs. The <stdlib.h> header is deprecated, as are all the other C++ versions of the C runtime library headers. The <iostream.h> and <fstream.h> headers are just not standard at all, meaning most compilers that aim to be standards conforming don't need to support them. Many still do because they try to stay compatible with pre-standard C++, but more and more compilers are giving errors or warnings for using the outdated header files.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM