-   Programming (
-   -   I want to learn C. (

KptnKrill 12-15-2003 09:28 AM

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.

Hko 12-15-2003 10:38 AM

For books K&R is the one.

KptnKrill 12-15-2003 06:36 PM

ah thanks. When I get out to borders I'll check that out.

h/w 12-15-2003 06:42 PM

i like this -

then theres this,

courtesy, google.

KptnKrill 12-16-2003 08:53 AM

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. :|

nibbler 12-16-2003 11:08 AM

c books

KptnKrill 12-16-2003 08:14 PM

oh cool, I like that last one. :)

Tarts 12-16-2003 10:12 PM

The first tutorial was:

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


h/w 12-17-2003 11:03 AM

haha - yes, those were what i first read. that first link helped me a lot. and i meant that i found those with google.

CamelofCamelot 12-17-2003 06:08 PM

There's a somewhat old book you can find in a library (probably) called Thinking in C. It's good.

worldmagic 12-18-2003 04:37 AM

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

Eugene 12-18-2003 05:05 AM

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...

WindowsBurner 12-18-2003 11:58 AM

Try 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.

kev82 12-18-2003 12:59 PM

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.

#include <iostream>
#include <algorithm>
#include <vector>
#include <math>

using namespace std;

class vect3
        double x, y, z;
        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;

WindowsBurner 12-18-2003 01:03 PM

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.

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