Help needed

This is a discussion on Help needed within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by LloydUzari Nope, waste of typing 5 more letters before each function I know what you mean though. ...

  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,088
    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.

Page 2 of 2 FirstFirst 12
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, 10: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, 12:55 PM
  3. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-01-2004, 12:24 AM

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