Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C- As In Constipation

Name: Anonymous 2010-10-15 18:54

So i'm new to the C language and i have a few questions.

First of all some past experience with me:java, C++ and lua

Now I've started to learn C and i find it kinda weird..... 1)structs i assume are the 'classes'(minus the functions inside) of C, is that correct?
2)each new C file isn't a new class like in most OOP languages instead it's just a continuation of the main file to provide more functions in a neater manor via it's header file, is that correct?
3)Is C supposed to be harder or easier than an OOP language?

Name: Anonymous 2010-10-15 20:06

>>1

1) Nope, C structs aren't like classes. And they can have functions.

2) Nope, I don't think I've written a program where I could dump everything into the same file and it would work. Just an example, look up how the keyword static works in C.

3) Nope, C was made before OOP languages, it is far easier to understand if you began programming with an imperative language.

Look, if you're trying to learn C from its similarities with other languages, I'd stop.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List