Computer Programming Question
Off Topic DiscussionDo these books teach Algorithm theory and efficiency?or are they just a technical overview and a dry introduction to programming?
Knowing algorithm theory is, in my view, a basic block before moving on to actual practice - maths are needed, who knew!
Knowing algorithm theory is, in my view, a basic block before moving on to actual practice - maths are needed, who knew!
anyone ever released "C++ for dumbies?" ?;p
Most programming books do not touch algorithmic efficiency. In the same manner, most algorithm books don't apply the practices to programming. It's one of those things that you sometimes have to learn one and then figure out how to apply the other while you learn it.
Personally, I don't think that classes and other OO concepts should be taught before structured/linear programming techniques.
Personally, I don't think that classes and other OO concepts should be taught before structured/linear programming techniques.
This is where I'm starting from:
http://www.cplusplus.com/doc/tutorial/program_structure.html
I'll pick up a book or two when I'm back in the US in July.
My first read is to get a conceptual idea of the language, then I'll read it again to learn more about actually using it. I like switching views between the outside in and the inside out.
One question about "behind the scenes" so to speak. When you write the programs you reference different commands or pools of data, like the iostream. Are these pieces of information stored in the OS? I understand the need to reference them but I don't know where they exist themselves. Conmputers have these files built in to them for many different programming languages?
Thanks!
http://www.cplusplus.com/doc/tutorial/program_structure.html
I'll pick up a book or two when I'm back in the US in July.
My first read is to get a conceptual idea of the language, then I'll read it again to learn more about actually using it. I like switching views between the outside in and the inside out.
One question about "behind the scenes" so to speak. When you write the programs you reference different commands or pools of data, like the iostream. Are these pieces of information stored in the OS? I understand the need to reference them but I don't know where they exist themselves. Conmputers have these files built in to them for many different programming languages?
Thanks!
This is where you'll likely run into a bit of a crossroad... or obstacle. Most tutorials are going to be teaching you C++ based on the Unix world. While the sytnax is technically the same (AFAIK), the implementation of something like visual C++ is likely quite different. I assume Visual C++ has some nice classes with it that will prevent you from some low-level things you have to do on a Unix implementation.
A direct answer to your question is no, iostream, etc. are not part of the OS. They are header files. Technically, they are supposed to follow a standard and work more or less the same. Microsoft is really bad about following rules like this, although I have zero experience w/ VC++. iostream and other header files exist in a specific place on your system...they are no part of the kernel. On my linux machine, I believe they are in /usr/include (you can always do a system search). They work just like header files you might make.
FYI, here's mine on my gentoo box:
/usr/lib/gcc/i386-pc-linux-gnu/3.4.4/include/g++-v3/iostream
A direct answer to your question is no, iostream, etc. are not part of the OS. They are header files. Technically, they are supposed to follow a standard and work more or less the same. Microsoft is really bad about following rules like this, although I have zero experience w/ VC++. iostream and other header files exist in a specific place on your system...they are no part of the kernel. On my linux machine, I believe they are in /usr/include (you can always do a system search). They work just like header files you might make.
FYI, here's mine on my gentoo box:
/usr/lib/gcc/i386-pc-linux-gnu/3.4.4/include/g++-v3/iostream
Original thread: https://assemblergames.com/threads/computer-programming-question.12730/