How much of the C language should I know before I start to learn C++? I know about the unwritten rule that all C++ programmers must be C programmers as well.
Printable View
How much of the C language should I know before I start to learn C++? I know about the unwritten rule that all C++ programmers must be C programmers as well.
You don't need to learn C before learning C++. Look at the tutorials on this site. They deal with C++, and are designed for those who haven't ever touched a compiler before. Of course, it always helps to have knowledge of the basic C I/O functions.
I don't think you need to know even the basics of C I/O to get started with C++. True, as you go along, learning the differences between C/C++ particularly as it pertains to the different I/0 and file handling routines offers alternative approaches where you may prefer one approach in a given situation and the other approach in a different situation. But to get started, learn C++ first. That will teach you 90% of C as you go. You will be able to pick up the other 10% as you go along, if you want.
Oops, that's what was previously said now that I re read the previous reply. Sorry.
I made the mistake of working through "Teach Yourself C in 21 Days" before working through "Teach Yourself C++ in 21 Days". There was a small advantage in doing this because there is material in the C book which is not covered in the C++ book. But, I could have accomplished the same thing by buying both and just using the C book as a reference.
Is "C++ is better than C" the general consensus of this board?
Please don't ask that question... do a search and you'll find a few threads discussing this one.Quote:
Originally posted by volk
Is "C++ is better than C" the general consensus of this board?
This is a C++ board, you know.Quote:
Originally posted by volk
Is "C++ is better than C" the general consensus of this board?
Can you post a link that discusses this topic? Please :)
>>This is a C++ board, you know
I think he was speaking in terms of the entire community, that said its a cprogramming board, technically :P
I went right from VB to C++ with no study in between, just start reading the sites , or others, tutorials.
As you become more experienced as a programmer you will stop thinking in terms of which is better. They are both languages and nothing more. I think once you know C++ you will tend to do things in more of C++ style, even if you like C better. But nonetheless, I don't think the question is really a good one since C and C++ are so closely related. If you ask which is better pascal or c at least you may actually start some sort of lame debate where people who like pascal will are with people who like c even though they are both (like all programming languages) merely tools that are used to achieve the same goal. The creation of a program.