Console Application

This is a discussion on Console Application within the C++ Programming forums, part of the General Programming Boards category; Why in these tutorials they are all done in Console Application, I mean what kind of program is writing on ...

  1. #1
    Registered User Mont_Blanc's Avatar
    Join Date
    Apr 2004
    Posts
    1

    Console Application

    Why in these tutorials they are all done in Console Application, I mean what kind of program is writing on a black screen suppose to mean.
    It isn't like those window application programs where it has the grey background.
    I'm a newbie, so there.
    And could you also tell me why the program in console application, just disappears; as in you won't be able to read that last sentence you had written ?!?
    Last edited by Mont_Blanc; 04-17-2004 at 02:26 AM. Reason: Forgot to add something

  2. #2
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,088
    The tutorials are done as console applications because those are much easier than Windows applications. It is important know the basics before moving on to advanced topics.

    As for the window closing before you can see the output, first read this:
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

    then read this:
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    1,208
    Also dont underestimate the power in console apps. Even though I try to learn game programming with openGL some of the tools I write (for example to convert a bitmap to my own file format) is made with console because its fast and I dont have to spend 70+ codelines on just making the window show up.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    Also, you can prove all your algorithms actually work properly in a console app before you bury them in a mass of detail.
    All you need is your algorithm, and a main() containing some printf()/cout statements showing what data you passed in, and what answers you got back.
    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. simple snmp console application.
    By csteinsv in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2009, 05:03 PM
  2. Subject:How to create a C# console application?
    By Adock in forum C# Programming
    Replies: 5
    Last Post: 09-03-2008, 05:58 PM
  3. Replies: 7
    Last Post: 01-14-2008, 09:25 AM
  4. Adding interface to Win32 console application
    By motiz in forum Windows Programming
    Replies: 5
    Last Post: 01-03-2008, 02:17 AM
  5. Running a console application
    By maxorator in forum C++ Programming
    Replies: 4
    Last Post: 10-03-2005, 04:23 AM

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