Overclockers Australia Forums

OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > Programming & Software Development

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 13th August 2010, 11:21 PM   #1
millsy_c Thread Starter
Member
 
millsy_c's Avatar
 
Join Date: Mar 2007
Location: BNE
Posts: 6,335
Default Any good tutorial on C out there?

Hey part of my course atm is based around C, but no tutorials are given on the language (e.g. here's problem, solve).
I've been googling around a bit trying to find a good tutorial but haven't had much luck yet, has someone found a good tutorial they'd be able to share?
Thanks!
__________________
Quote:
Originally Posted by angel Havoc View Post
Was about to type "There's nothing wrong with Penrith", until I remembered that someone did try to burn down a petrol station...
System: i5 3570k @4ghz, 16gb ddr3, dual 670's, r4 define, triple U2312HM on proluma mount blah blah blah
millsy_c is offline   Reply With Quote

Join OCAU to remove this ad!
Old 14th August 2010, 3:30 AM   #2
stmok
Member
 
Join Date: Jul 2001
Location: Sydney
Posts: 8,872
Default

I don't know about online tutorials, but here's the books an experienced C programmer gave me when I asked them about learning C language...

(1) A Book on C: Programming in C
By Kelley and Pohl

(2) The C Programming Language
By Brian W. Kernighan
And Dennis M. Ritchie

(3) C - Traps and Pitfalls
by Koenig
__________________
"Haters gonna hate." => "I have no logical rebuttal to your criticism so I'm going to say something simple and meaningless to make myself feel better."-crabjokeman from Techreport.com forums.
"The politicians don’t just want your money. They want your soul. They want you to be worn down by taxes until you are dependent and helpless."-James Dale Davidson.
stmok is offline   Reply With Quote
Old 14th August 2010, 1:03 PM   #3
millsy_c Thread Starter
Member
 
millsy_c's Avatar
 
Join Date: Mar 2007
Location: BNE
Posts: 6,335
Default

Cool I found #2, appreciate the help
__________________
Quote:
Originally Posted by angel Havoc View Post
Was about to type "There's nothing wrong with Penrith", until I remembered that someone did try to burn down a petrol station...
System: i5 3570k @4ghz, 16gb ddr3, dual 670's, r4 define, triple U2312HM on proluma mount blah blah blah
millsy_c is offline   Reply With Quote
Old 14th August 2010, 8:17 PM   #4
Foliage
Member
 
Foliage's Avatar
 
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 23,641
Default

The best way to learn is to just start coding a program, when you get stuck google away. You will probably end up re doing the program 5 times as you will learn more and more and realise how bad some of your previous techniques were, but this is the best way to learn, practice.

Pick a project like a graphical calculator that stores a log of all calcs made in a text file. Start by making the GUI, then the back end, then the code to write a log file.

Google everything you get stuck on, you will learn very quickly this way. Having a good reference book is always handy, though I will leave that up to the others as I don't know any good names off the top of my head.
__________________
I like to construct strong views on random things, and then argue for absolutely no reason about them.
Foliage is offline   Reply With Quote
Old 14th August 2010, 11:29 PM   #5
millsy_c Thread Starter
Member
 
millsy_c's Avatar
 
Join Date: Mar 2007
Location: BNE
Posts: 6,335
Default

Quote:
Originally Posted by Foliage View Post
The best way to learn is to just start coding a program, when you get stuck google away. You will probably end up re doing the program 5 times as you will learn more and more and realise how bad some of your previous techniques were, but this is the best way to learn, practice.

Pick a project like a graphical calculator that stores a log of all calcs made in a text file. Start by making the GUI, then the back end, then the code to write a log file.

Google everything you get stuck on, you will learn very quickly this way. Having a good reference book is always handy, though I will leave that up to the others as I don't know any good names off the top of my head.
Yeah that's what i'm doing atm, the multitude of potential things you need to do with printf is quite odd to someone who's used to C#/Visual Basic etc
__________________
Quote:
Originally Posted by angel Havoc View Post
Was about to type "There's nothing wrong with Penrith", until I remembered that someone did try to burn down a petrol station...
System: i5 3570k @4ghz, 16gb ddr3, dual 670's, r4 define, triple U2312HM on proluma mount blah blah blah
millsy_c is offline   Reply With Quote
Old 18th August 2010, 8:55 PM   #6
itachi46
Member
 
itachi46's Avatar
 
Join Date: Apr 2008
Location: Melbourne
Posts: 1,984
Default

do people really still program in C? (and i mean pure C not some dialect of C) dont mean to threadcrap just genuinely interested
__________________
Quote:
Originally Posted by Bastard Child View Post
*here's hoping an email to the distributor can get me a replacement knob*
itachi46 is offline   Reply With Quote
Old 18th August 2010, 8:58 PM   #7
Foliage
Member
 
Foliage's Avatar
 
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 23,641
Default

Quote:
Originally Posted by itachi46 View Post
do people really still program in C? (and i mean pure C not some dialect of C) dont mean to threadcrap just genuinely interested
of course they do!

sooo many things are coded in C still, basically every single microprocessor on the earth uses C, most kernel, driver etc programmers also use C.
__________________
I like to construct strong views on random things, and then argue for absolutely no reason about them.
Foliage is offline   Reply With Quote
Old 18th August 2010, 9:02 PM   #8
domlebo
Member
 
domlebo's Avatar
 
Join Date: Nov 2004
Location: Brisbane
Posts: 7,804
Default

Quote:
Originally Posted by itachi46 View Post
do people really still program in C? (and i mean pure C not some dialect of C) dont mean to threadcrap just genuinely interested
C is still pretty widespread, especially in embedded systems. Rule 34: If it exists, there's porn of it.... no wait... if it exists, there's a C compiler for it.

__________________
2004 Clio 182
1991 205 GTI
domlebo is offline   Reply With Quote
Old 18th August 2010, 9:09 PM   #9
itachi46
Member
 
itachi46's Avatar
 
Join Date: Apr 2008
Location: Melbourne
Posts: 1,984
Default

hmm i suppose, i mean i kinda expected to see it in program that are very close to the hardware like drivers and kernels.. (afterall c was created to rewrite unix) i just find it too troublesome to use for most desktop applications... maybe im just too dumb to use it XD
__________________
Quote:
Originally Posted by Bastard Child View Post
*here's hoping an email to the distributor can get me a replacement knob*
itachi46 is offline   Reply With Quote
Old 18th August 2010, 9:11 PM   #10
Foliage
Member
 
Foliage's Avatar
 
Join Date: Jan 2002
Location: Sleepwithyourdadelaide
Posts: 23,641
Default

Quote:
Originally Posted by itachi46 View Post
hmm i suppose, i mean i kinda expected to see it in program that are very close to the hardware like drivers and kernels.. (afterall c was created to rewrite unix) i just find it too troublesome to use for most desktop applications... maybe im just too dumb to use it XD
no one would use it to write a desktop application these days, be very painful for zero gain.
__________________
I like to construct strong views on random things, and then argue for absolutely no reason about them.
Foliage is offline   Reply With Quote
Old 18th August 2010, 9:15 PM   #11
antenna
Member
 
antenna's Avatar
 
Join Date: Feb 2007
Location: Adelaide
Posts: 221
Default

Plenty of desktop apps on Linux use it (nearly everything using GTK/Gnome etc).
antenna is offline   Reply With Quote
Old 18th August 2010, 9:15 PM   #12
itachi46
Member
 
itachi46's Avatar
 
Join Date: Apr 2008
Location: Melbourne
Posts: 1,984
Default

Quote:
Originally Posted by Foliage View Post
no one would use it to write a desktop application these days, be very painful for zero gain.
yeh i suppose its becoming like assembly in the yee olde days yes u can get slight performance gain if you're epic at C but it comes down to risk/reward of it.. and its probably better using a higher level language and program it in 1/10th the time with slightly less performance... also, future development is probably easier to handle on languages like c#,java etc but i suppose it couldnt hurt to learn C it makes you appreciate alot of things we take for granted in languages that is made in the last 25 years.
__________________
Quote:
Originally Posted by Bastard Child View Post
*here's hoping an email to the distributor can get me a replacement knob*
itachi46 is offline   Reply With Quote
Old 18th August 2010, 9:17 PM   #13
t3h
Member
 
t3h's Avatar
 
Join Date: Dec 2007
Location: Adelaide
Posts: 228
Default

Quote:
Originally Posted by Foliage View Post
no one would use it to write a desktop application these days, be very painful for zero gain.
Pure C, maybe not, but there's plenty of apps in C++.
__________________
MBP 15"/750GB 7200RPM HDD/64GB G.Skill Falcon2 SSD/8GB DDR3 RAM/512MB GT330M/2.66 i7/1680x1050 hires matte
Asus P5Q-Pro/E8500/GTX275/Antec EarthWatts 500/many HDDs/4GB 1066 RAM/G5 case
t3h is offline   Reply With Quote
Old 18th August 2010, 9:18 PM   #14
domlebo
Member
 
domlebo's Avatar
 
Join Date: Nov 2004
Location: Brisbane
Posts: 7,804
Default

Quote:
Originally Posted by antenna View Post
Plenty of desktop apps on Linux use it (nearly everything using GTK/Gnome etc).
Only because we have uber nerds (Linus, Stallman) who are so massively egotistical they don't want to redo GNU Linux / Linux in C++, because they seem to have a chip on their shoulder. Instead we have weird arse coding conventions built around the fact it's becoming difficult to maintain.
__________________
2004 Clio 182
1991 205 GTI
domlebo is offline   Reply With Quote
Old 18th August 2010, 9:23 PM   #15
itachi46
Member
 
itachi46's Avatar
 
Join Date: Apr 2008
Location: Melbourne
Posts: 1,984
Default

yeh i'd buy that its either dialects of c or C++ but pure c? really o.o... jeez.
__________________
Quote:
Originally Posted by Bastard Child View Post
*here's hoping an email to the distributor can get me a replacement knob*
itachi46 is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 1:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!