J
jonathanmcdougall
I just got a new job yesterday where most of the programming is done in
C. Although I have several years of experience in C++ and other
object-oriented languages, I have next to none in C.
What I am looking for is a book (or some other resource) on "how to
learn C if you already know C++" or, more exactly, "how to program in a
procedural language when your only experience is with object-oriented
languages".
I find myself wanting to emulate many OO features and I have the
impression this is wrong. I need to know how source files are
organized, I'm lost without namespaces, classes and the standard
library (containers, someone?), how do you cope with all these variable
definitions at the top of a function, do you really create
as-big-as-you-can arrays of chars for strings, etc. etc.
Pretty much everything I was told and teached to avoid in C++ seem to
be needed in C. That's counter-intuitive for me and hard to get over.
Is there a book of wisdom somewhere that could help me understand
idioms, design patterns or oft-used construction?
Thank you,
Jonathan
C. Although I have several years of experience in C++ and other
object-oriented languages, I have next to none in C.
What I am looking for is a book (or some other resource) on "how to
learn C if you already know C++" or, more exactly, "how to program in a
procedural language when your only experience is with object-oriented
languages".
I find myself wanting to emulate many OO features and I have the
impression this is wrong. I need to know how source files are
organized, I'm lost without namespaces, classes and the standard
library (containers, someone?), how do you cope with all these variable
definitions at the top of a function, do you really create
as-big-as-you-can arrays of chars for strings, etc. etc.
Pretty much everything I was told and teached to avoid in C++ seem to
be needed in C. That's counter-intuitive for me and hard to get over.
Is there a book of wisdom somewhere that could help me understand
idioms, design patterns or oft-used construction?
Thank you,
Jonathan