Re: Initializing an Array of Pointers to Char
- From: Andrew Poelstra <fake.address@xxxxxx>
- Date: Mon, 31 Jul 2006 14:08:05 GMT
On 2006-07-31, Richard Heathfield <invalid@xxxxxxxxxxxxxxx> wrote:
Andrew Poelstra said:
<snip>
printf ("\n");
fflush (stdout);
Either of those will work.
(Unless you can't see your output because you're in Visual Studio.
The fix in that case is to stop using Visual Studio.)
No, the fix in that case is to run the program in the debugger, putting a
breakpoint on the return statement in main() - another great reason to have
exactly one exit point in your program - or to run it outside the debugger
but still within Visual Studio (which will say "press any key to continue"
at the end of the program), or to run it from a console.
I am far from being the world's greatest Microsoft fan, but there's very
little wrong with their C compiler and IDE.
I have nothing against their compiler; I just don't like IDE's in
general. What I meant by "Stop using VS" was to go into a command line
and invoke the compiler directly. Or, you could keep using the IDE and
use a command line to run the program directly. (Either way, it's a good
experience if only to teach you something about command lines.)
--
Andrew Poelstra <website down>
To reach my email, use <email also down>
New server ETA: 42
.
- References:
- Initializing an Array of Pointers to Char
- From: nk
- Re: Initializing an Array of Pointers to Char
- From: nk
- Re: Initializing an Array of Pointers to Char
- From: Andrew Poelstra
- Re: Initializing an Array of Pointers to Char
- From: Richard Heathfield
- Initializing an Array of Pointers to Char
- Prev by Date: Re: GCC-Bug ? (Unintended "overloading")
- Next by Date: Re: Question about a solution to excercise 4-13 in K & R
- Previous by thread: Re: Initializing an Array of Pointers to Char
- Next by thread: Help with sscanf() needed desperately
- Index(es):
Relevant Pages
|