Thread: Console C++

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    22

    Unhappy Console C++

    Hi, a month ago I completed a C++ class. Everything they taught was on the console screen, that is, the text only interface.
    And then, I find out that C++ programs these days are all GUI and we don't use iostream and all that.

    Does this mean that everything I learnt was wasted?
    It's a miracle that curiosity survives formal education - Albert Einstein

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Dakshin
    I find out that C++ programs these days are all GUI and we don't use iostream and all that.
    That is not true.

    Quote Originally Posted by Dakshin
    Does this mean that everything I learnt was wasted?
    Even if you never write another C++ program in your life, the thinking and problem solving skills that you acquired in the process can be useful when applied in other programming languages, and maybe even in other areas of your life, study and/or work.
    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. #3
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    iostreams are still used to print to files, which is an important feature.
    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.

  4. #4
    Registered User
    Join Date
    Feb 2013
    Posts
    22

    Smile

    Thanks a lot! You have no idea how big a weight has been lifted from my shoulders and all that sort of thing.
    Last edited by Dakshin; 05-23-2013 at 07:24 AM.
    It's a miracle that curiosity survives formal education - Albert Einstein

  5. #5
    Internet Superhero
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    964
    Quote Originally Posted by Dakshin View Post
    Wait, so I never will write another C++ program in my life?
    Well that is up to you. What Laserlight said is even if you don't you will still have learnt something.

    Also the idea that learning how input/output from the console works is somehow useless because of the GUI alternatives is simply nonsense. Nobody has ever learned to do GUI in C++ before they learnt how to use the console. Also many large and complicated projects use the console exclusively, one such example is GCC, but there are tons of examples really.
    How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Every time you want to test a new idea, you want to strip away all the irrelevancies and just focus on the problem at hand.

    Producing a quick console program to do this is almost always the way to go.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. In a console is there..
    By Raigne in forum Windows Programming
    Replies: 17
    Last Post: 06-24-2006, 05:02 PM
  2. Win32 Console App... multiple console buffers
    By Trauts in forum Windows Programming
    Replies: 2
    Last Post: 04-28-2003, 11:26 AM
  3. Console?
    By Zahl in forum C++ Programming
    Replies: 4
    Last Post: 10-11-2002, 10:18 AM
  4. Console
    By sean345 in forum Windows Programming
    Replies: 8
    Last Post: 05-14-2002, 10:23 AM