simple error...

This is a discussion on simple error... within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by LloydUzari using namespace std; (not recommended) using std::[command]; (without []'s, not best, but better) std::[command] (put std:: ...

  1. #16
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by LloydUzari
    using namespace std; (not recommended)
    using std::[command]; (without []'s, not best, but better)
    std::[command] (put std:: before each command, best way)
    i love how you have no basis for why one way is better than the other... you just take your personal preferance as being the best *sigh*
    since when is "using namespace std;" not recommended? foobar!
    do you even know the difference between having "using std::foo;" and using "std::" before every "foo" command? i bet you dont :-P

    dont force your personal opinion on others without some sort of reasonable basis or explanation. I understand the differences and advantages to one method vs the others, but the people you suggest these things to might not.

  2. #17
    the Wizard
    Join Date
    Aug 2004
    Posts
    109
    Perspective: Couldn't have wrote it better myself
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  2. Crazy errors caused by class, never seen before..
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 11:54 AM
  3. DX - CreateDevice - D3DERR_INVALIDCALL
    By Tonto in forum Game Programming
    Replies: 3
    Last Post: 12-01-2006, 06:17 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM

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