Getting the output of an C++ Application!!!

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
varuna
Posts: 2
Joined: Thu Jun 14, 2007 4:36 pm

Getting the output of an C++ Application!!!

Post by varuna »

The preferences settings I used in running a C++ Application are
Parameters:-$BaseName
Initial folder:-FileDir

If I compile the following program and run, at the first time of execution the out put is "Press any key to continue" and only when for the second time the program is run the intended output is given.Why is this and how can I correct this?

Code: Select all

#include <stdio.h>
int main(void)
{
	printf("Hello world\n");
	printf("Hit any key to continue:");
	getchar();

return 0;
}
Varuna
Post Reply