C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 04-17-2004, 02:12 AM   #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
Mont_Blanc is offline   Reply With Quote
Old 04-17-2004, 02:32 AM   #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
jlou is offline   Reply With Quote
Old 04-17-2004, 02:42 AM   #3
Registered User
 
Join Date: Aug 2003
Posts: 782
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.
Shakti is offline   Reply With Quote
Old 04-17-2004, 03:07 AM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
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.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple snmp console application. csteinsv C++ Programming 0 06-01-2009 05:03 PM
Subject:How to create a C# console application? Adock C# Programming 5 09-03-2008 05:58 PM
converting a win32 console application to DLL LNK 2001 unreseolved sign motiz C++ Programming 7 01-14-2008 10:25 AM
Adding interface to Win32 console application motiz Windows Programming 5 01-03-2008 03:17 AM
Running a console application maxorator C++ Programming 4 10-03-2005 04:23 AM


All times are GMT -6. The time now is 07:23 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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