Re: [Dev-C++] displaying output (was: no subject)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Luigi S. <gi...@li...> - 2002-05-16 17:58:43
|
At 02:46 16/05/02 +0000, Nancy Alvarez wrote: >Can somebody help me? > >I dont`t get display the messages whith any program. For example this? I suppose you are using Dev-C++, and running programs from within the IDE. So you only see a flashing black screen. You will hear about putting some line of code in your program that pauses it, allowing you to read the output, I personally believe that no extra line of code should be added to the program, because the problem is related to the OS (Windows) not to the program itself, instead you should run this kind of programs from a DOS box (in fact they are console applications, and as such, the natural way of using them, is within a console). >... >/* Result of execution > >This is a string. > >.gnirts a si sih > >*/ BTW: your program has a small bug. In fact, The 'T' of "This" is not displayed in the reversed string (while the terminating '\0' is displayed twice). I'm tempted to fix it, but that would take the fun away from you :) -- Luigi gi...@li... |