Quote:Can somebody tell me what is better/more functional/more useful:
C or C++
Hey dark. C++ is (for practical purposes) a super-set of C. That means that C code *will compile* with a C++ compiler. Everything that can be written in C++ can also be written in C...although it would take a lot of code to get all the OO stuff.
C++ can be used as "a better C" structural language, and the OO stuff can be incorporated as it's needed.
There is tons of C code out there. The amount of conforming C++ is miniscule by comparison. However, learn C++ and you can't help but learn C.
At a really basic level, the main difference between C++ and C is that C++ allows structures to contain functions as well as data. In QB, it would be if you could make a TYPE that held both data and SUBs. These structures are called classes. In C, structures only contain data.
Quote:
Im guess the latter is, but I just wanted to be sure. Also, could somebody point me in the direction to start coding in C/C++. I literally have no idea where to start. Do i need a compiler? Is there only one compiler available, like Qb45, or is there many done by different companies, etc. Any help appretiated.
You need a compiler. Get one with an IDE. Dev-c++ works great for me, and it's free.
Get Bruce Eckel's book, "Thinking in C++" available free on the net.
forget graphics for the time being and learn "standard c++". You have enough to worry about...
new language/syntax
STL
compiling
preprocessor
translation units
...
Start coding simple programs that exist as a single file rather than project files, which may only serve to confuse.
if you are half as dense as I am, ask questions often to avoid the many pitfalls that are likely to get in your way...eg, I spent a month writing programms before I understood that my use of header files was so far-afield of the mainstream...it was actually stirling_Christinson (sorry sp) who helped me see how unorthodox my code was...