Thread: Output error

  1. #16
    Registered User
    Join Date
    Aug 2011
    Posts
    385
    Quote Originally Posted by Elysia View Post
    What outdated version of the compiler are you using? 4.0?
    I am using Microsoft Visual C++ 6.0

  2. #17
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by juice
    I am using Microsoft Visual C++ 6.0
    Yeah, that is a pre-standard compiler. You should use at least MSVC7.1, which comes with Visual Studio 2003. That said, even the latest C++ compilers available today are pre-standard with respect to the current edition of the C++ standard, published just this year, but at least if you use a more recent version, you would get access to more features that were introduced in this new edition of the standard.

    (Plus, it is more likely that bugs related to features from the previous edition of the standard were fixed, even though new bugs may have been introduced with new features, heh.)
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #18
    Registered User
    Join Date
    Aug 2011
    Posts
    385
    I wanna say thanks laser. u've always been kind with me and helped me out with all my stupid mistakes.
    Thanks..

  4. #19
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    Quote Originally Posted by juice View Post
    The book that I am referring "Let us C++" by Yashwant Kanetkar has never said int main() or <iostream.h>, and I don't find any compelling reasons to do that either.
    Yet another book that teaches an antique version of "C with classes".
    It is not a bad book, but there are plenty of better ones available.
    I'd suggest -- Accelerated C++ ; and complement with some online tutorials/lectures and exercises.

  5. #20
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by juice View Post
    I am using Microsoft Visual C++ 6.0
    What made you think that was a good idea, considering its age?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #21
    Registered User
    Join Date
    Aug 2011
    Posts
    385
    Never mind. I have migrated to visual studio 2010, and am loving it.

  7. #22
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by juice View Post
    I have visual studio 2010 but I am a newbie, and I am not that apt at using these modern compilers. So it will take some time for me to catch up!!
    The sooner you get apt () the better.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with an error in the output of my code!
    By justiliang in forum C Programming
    Replies: 11
    Last Post: 09-24-2011, 09:29 AM
  2. compiler error not formatting output
    By Joeg1484 in forum Linux Programming
    Replies: 8
    Last Post: 04-06-2011, 03:08 PM
  3. sprintf output error
    By Ji33my in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2010, 10:53 PM
  4. rcp error output question
    By cristane in forum Linux Programming
    Replies: 1
    Last Post: 07-18-2005, 09:47 PM
  5. Error End of OutPut
    By swgh in forum C++ Programming
    Replies: 4
    Last Post: 07-01-2005, 08:43 AM