i got a book for learn the c languge the source code was
#include <stdio.h>
-------------------------------------------------------------------------Code:int main(void) { printf("Hello, World!/n"); return 0; }
plz help!!!
i got a book for learn the c languge the source code was
#include <stdio.h>
-------------------------------------------------------------------------Code:int main(void) { printf("Hello, World!/n"); return 0; }
plz help!!!
I guess there was a typo in your book. The correct printf stmt is
Code:printf("Hello, World!\n");
> help
Great topic title - did you think of it yourself?
http://cboard.cprogramming.com/annou...ouncementid=51
> i got a book
Which one?
There are a lot of books to choose from, and many of them are crap
> plz help!
With what?
You didn't actually ask any questions.
Apart from "/n" should normally be "\n", it seems a pretty standard opener to me.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Do you want to know what each statement does? How to run the program? How to compile it?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
What is your Question!
everything is Allright !
thx alot now i get it!!!!!!!!!!!!!!!!!!!!!!!!