Does anyone know some good tutorial on the internet for C? Or can someone reccomend me a good book for C. Thank you.
Does anyone know some good tutorial on the internet for C? Or can someone reccomend me a good book for C. Thank you.
Ivor Horton's "Beginning C".
Kernighan & Ritchie "The C Programming Language", this one is full of short, intense "body blows to your brain". Not for the meek -- bring on the geek, or stay home on this one.
Barnes & Nobles has a collection of colorful and small mini-books, on a variety of subjects. The one for C was quite nice. Cheap as anything, too. About $9.00 as I recall (but I don't remember the title to the book, so the facts may be at odds with that). This is a VERY gentle tutorial book, but it also covers a lot of the nuts and bolts of doing things. A sample function/program on almost every page.
Yes. First learn assembly langauge and binary and hexadecimal. Then you'll know C.
Actually, download GNU C tutorial in pdf or whatever format. It's really a good tutorial.
Or yeah, Ivor Horton is a great C book author.
Remember that all that code you write turns into this:
0100100100110010010011100100111001001
0010100100100001001111100010010010010 ....
I have found some great e-books but when i copy and paste the code that is in the book into my compiler it works. But when i write it by myself it doesnt work. Why is that?
Perhaps you should show us what code your have written?
ssharish2005
Hi All,
For anyone wanting to learn C using the WIN32 API have a look at this site, all to do with webcams.
http://uk.geocities.com/ecafin/index.html
Tutorials and source code included. A good method of learning C.
Regards to all
Eric132
I have tried to write this program.
Code:#include <stdio.h> #include <stdlib.h> #define BOILING 212 /* degrees Fahrenheit */ main(){ float f_var; double d_var; long double l_d_var; int i; i = 0; printf("Fahrenheit to Centigrade\n"); while(i <= BOILING){ l_d_var = 5*(i-32); l_d_var = l_d_var/9; d_var = l_d_var; f_var = l_d_var; printf("%d %f %f %lf\n", i, f_var, d_var, l_d_var); i = i+1; } exit(EXIT_SUCCESS); }
ssharish2005Code:#include <stdio.h> #include <stdlib.h> #define BOILING 212 /* degrees Fahrenheit */ main(){ int f_var; float d_var; float l_d_var; int i; i = 1; printf("Fahrenheit to Centigrade\n"); while(i <= BOILING){ d_var = (i - 32) ; d_var = d_var / 9.0; f_var = d_var * 5; printf("%d %d \n", i, f_var); i = i+1; } getchar(); exit(EXIT_SUCCESS); }
Well, i thought it would be better if we learn C using some more standardised code?
I mean like this one:
Well, this is just my suggestion though. I'm still learning it too.Code:#include <stdio.h> #include <stdlib.h> #define BOILING 212 /* degrees Fahrenheit */ int main(){ int f_var; float d_var; float l_d_var; int i; i = 1; printf("Fahrenheit to Centigrade\n"); while(i <= BOILING) { d_var = (i - 32) ; d_var = d_var / 9.0; f_var = d_var * 5; printf("%d %d \n", i, f_var); i = i+1; } getchar(); return 0; }
Hope u can find some learning C
return 0 or return EXIT_SUCCESS is fine
Most books use return 0 though
Double Helix STL
This is a good tutorial
Also, I did a
to save it for offline viewing/learning.Code:$ wget -H -r --level=1 -k -p http://www.cs.cf.ac.uk/Dave/C/index.html