Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Learning C through K&R book

Name: Anonymous 2011-08-24 21:12

I already compiled and ran my first code but there's this thing.
When I run it, cmd flashes and disapears.(I'm using Dev-C++ on windows to make it)
Anyways, I think there was a command or function to make the cmd pause till I press enter or something like that so that I am able to read whatever the output was, the thing is, I cant remember the name of the function or how to write it.
Can one of you tell me which it is, if there is one.
BTW here's my code:


#include <stdio.h>

main ()
{
  printf("Hello World!");
}

Name: Anonymous 2011-08-25 1:56

>>21
What was that?
You wanted a discussion about scanf?

YOU GOT IT!

But seriously, you got me intrigued. And besides knowing is half the battle as they say... or something.

Anyways, you got me thinking and searching and I'm starting to wonder if I should really try to learn C or just go to C++ because of this quote I found while doing some more searching:
Maybe it's time to consider another language. When Kernighan and Ritchie originally developed C in 1978, it was considered functional, but low level. Now, it is the primary alternative to assembly language.[1]
[1]: http://www.astahost.com/info.php/Programming-Windows_t17949.html
What do you think?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List