LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-15-2003, 09:28 AM   #1
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Rep: Reputation: 30
I want to learn C.


As the title says. I'm not sure where to start. It seems that most of the online tutorials are 'C, C++', well I don't really care about C++ I just want to learn C. I was wondering if anyone has any recommendations on books, tutorials, advice, etc.
Thanks,
Kyle
 
Old 12-15-2003, 10:38 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
For books K&R is the one.
 
Old 12-15-2003, 06:36 PM   #3
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Original Poster
Rep: Reputation: 30
ah thanks. When I get out to borders I'll check that out.
 
Old 12-15-2003, 06:42 PM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
i like this - http://www.cs.cf.ac.uk/Dave/C/CE.html

then theres this,
http://www.strath.ac.uk/IT/Docs/Ccourse/


courtesy, google.
 
Old 12-16-2003, 08:53 AM   #5
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Original Poster
Rep: Reputation: 30
thank you but I can search google on my own. I was asking if there were any tutorials that helped you out when you learning. Sorry if that wasn' t clear. :|
 
Old 12-16-2003, 11:08 AM   #6
nibbler
Member
 
Registered: Oct 2003
Location: Croatia
Distribution: Fedora 4
Posts: 46

Rep: Reputation: 15
c books

try http://www.bxteam.org/knjige.php
 
Old 12-16-2003, 08:14 PM   #7
KptnKrill
Member
 
Registered: Apr 2003
Location: US, MA
Distribution: Nandu-0.ab, Arch 0.7.2
Posts: 229

Original Poster
Rep: Reputation: 30
oh cool, I like that last one.
 
Old 12-16-2003, 10:12 PM   #8
Tarts
Member
 
Registered: Feb 2003
Distribution: Slackware 9.1 (exclusively) ;)
Posts: 344

Rep: Reputation: 30
The first tutorial was:

http://computer.howstuffworks.com/c.htm

Now I'm reading the one from K&R(which rocks)

Tarts
 
Old 12-17-2003, 11:03 AM   #9
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
haha - yes, those were what i first read. that first link helped me a lot. and i meant that i found those with google.
 
Old 12-17-2003, 06:08 PM   #10
CamelofCamelot
Member
 
Registered: Aug 2003
Distribution: Slackware, ClusterKnoppix, Gentoo
Posts: 85

Rep: Reputation: 15
There's a somewhat old book you can find in a library (probably) called Thinking in C. It's good.
 
Old 12-18-2003, 04:37 AM   #11
worldmagic
Member
 
Registered: Oct 2003
Location: Europe/Sweden
Distribution: RedHat
Posts: 78

Rep: Reputation: 15
Learning C from the reference books doesnt go any good if you dont have any (good) reference over the C-library. .. This link is very good http://www.gnu.org/manual/glibc-2.0..../libc_toc.html
 
Old 12-18-2003, 05:05 AM   #12
Eugene
Member
 
Registered: Nov 2003
Distribution: SuSE 9.0! and loving it!
Posts: 86

Rep: Reputation: 15
why the hell C?

Object-Oriented is the way to go...

At least learn C++, or Object-Oriented C... or start with java...

what's the point of learning just plain C?

Its old, most programmers don't use it anymore... not that much anyway...
 
Old 12-18-2003, 11:58 AM   #13
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Rep: Reputation: 30
Try http://www.programmersheaven.com/zone3/ some of the examples and tutorials there helped me.

Why waste your time learning C++ when you could learn something useful like C?
I think C is best.I've programmed with C++ for 8 months and then had a look at C....I'm in love with C now and haven't looked at C++ for two months.I dont even remember anything but :

cout << "Hello" << endl;
cin >> my_var << endl;

True C is just a bit harder but your program looks so much sweeter and functions much better when your done.
Anyway hope those Tutorials helped.
 
Old 12-18-2003, 12:59 PM   #14
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 50
sorry to be slightly off topic but i wanted to answer the following

by WindowsBurner
Why waste your time learning C++ when you could learn something useful like C?

i'd like to see the pure C with nothing but the standard library implementation of the following code.
Code:
#include <iostream>
#include <algorithm>
#include <vector>
#include <math>

using namespace std;

class vect3
{
private:
        double x, y, z;
public:
        vect3(double x, double y, double z) : x(x), y(y), z(z) {}
        double length() const {
                return x*x + y*y + z*z;
        }
        bool operator<(const vect3 &v) const {
                return length() == v.length();
        }
};

int main()
{
        vector<vect3> v;
        double d;
        int i;

        for(d=0,i=0;i<100;d=2*3.1416*(++i)/100) {
                v.push_back(vect3(2*cos(d),3*sin(d), d));
        }

        sort(v.begin(), v.end());
        while(next_permutation(v.begin(), v.end())) {
                //plot vectors in order
        }
        return 0;
}
 
Old 12-18-2003, 01:03 PM   #15
WindowsBurner
Member
 
Registered: Nov 2003
Location: In chaos
Distribution: OpenSuse
Posts: 293

Rep: Reputation: 30
I didn't say that I knew how to do that I'm still pretty much a beginner with C.
I'm not saying that there aren't some things that you cant do easier in C++ I'm just saying I prefer C because it seems simpler in a way and I just feel more comfortable with it.If you like C++ better than C then thats good for you.Everyone has their own preference mine is C yours is C++.I probably could give you code but I'm working on projects at the moment so don't have time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The best way to learn? iz3r Programming 7 02-06-2005 11:00 PM
Do you really need to learn C before C++? qcoder Programming 31 12-04-2003 10:10 AM
What should i get to learn? Any Solaris / OpenSolaris 1 02-18-2003 06:19 PM
I would like to learn how to do it tournesol Linux From Scratch 2 10-07-2002 10:07 PM
How to learn more? R2RO Linux - Software 5 08-31-2002 08:15 PM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration