>If anyone can help me i would greatly appreciate it.
Sure .
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
>So how would I get this to print to my screen without the dos prompt going away really fast?
#include <stdio.h>
int main(void)
{
puts("Hey,you,I'm alive! Oh, and Hello World!");
/* insert code to wait for user input */
fputs("Press enter to continue...", stdout);
getchar();
return 0;
}
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
>You want to use the getch() function.
There is not much reason to use a nonstandard function when there is a standard one that can do much the same.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314