M
MrG{DRGN}
Hello,
I've been saving up to buy myself some C programming texts so that I might
learn, and my wife surprised me by getting something off eBay for a fairly
cheap price. Unfortunately the book is circa 1983 and I'm not sure if the
code was good then or is still good now. The title is "Learning to Program
in C" by Thomas Plum. The first program in the book is as follows.
main()
{
write(1, "hello, world\n", 13);
}
Which compiles & runs fine in my environment <OT> WinXP MSVC++ 2005 </OT>
What I've seen posted here and about is something more along the lines of;
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
So my questions are;
Was the first code valid and good circa 1983?
If yes then is the first code still good and valid now, or is my compiler
just supporting depreciated functions and/or non standard code?
Should I ditch this book, and keep saving for something better?
Thanks!
I've been saving up to buy myself some C programming texts so that I might
learn, and my wife surprised me by getting something off eBay for a fairly
cheap price. Unfortunately the book is circa 1983 and I'm not sure if the
code was good then or is still good now. The title is "Learning to Program
in C" by Thomas Plum. The first program in the book is as follows.
main()
{
write(1, "hello, world\n", 13);
}
Which compiles & runs fine in my environment <OT> WinXP MSVC++ 2005 </OT>
What I've seen posted here and about is something more along the lines of;
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
So my questions are;
Was the first code valid and good circa 1983?
If yes then is the first code still good and valid now, or is my compiler
just supporting depreciated functions and/or non standard code?
Should I ditch this book, and keep saving for something better?
Thanks!