Like Tree2Likes
  • 1 Post By Neo1
  • 1 Post By Salem

Console C++

This is a discussion on Console C++ within the C++ Programming forums, part of the General Programming Boards category; Hi, a month ago I completed a C++ class. Everything they taught was on the console screen, that is, the ...

  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
    21,717
    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.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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.
    laserlight likes this.
    How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,536
    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.
    Elkvis likes this.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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

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