| Author | Message | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| LEARN C++ FOR DUMMIES
Seriously, does anyone know of a tutorial to learn everything there is to C++? i need a tut thats less complex and will explain every definition. for an example.....
- this here explains the #include <iostream> command but what are directives and preprocessors. they are not regular codes of lines with expressions? what the hell does that mean? also In this case the directive
|
| Re: LEARN C++ FOR DUMMIES
14 years, 15 weeks ago
|
| Re: LEARN C++ FOR DUMMIES
thats not even a good guide jasper. i need a full guide
|
| Re: LEARN C++ FOR DUMMIES
Lol? Do you think anyone will have a full guide? No, there is too much stuff in C++ for a full guide. That and your title says "For Dummies", implying that you want to know the basics, so the guide jasper gave you is fine. --- Former multi-server mapper.
|
| Re: LEARN C++ FOR DUMMIES
He wants everyone to spoon feed him --- CN:BH 4 lyfe
|
| Re: LEARN C++ FOR DUMMIES
http://thenewboston.org --- i hate kody
|
| Re: LEARN C++ FOR DUMMIES
http://www.youtube.com/watch?v=tyVhn0FWWB4 it's a really good guide
|
| Re: LEARN C++ FOR DUMMIES
| ||||||||
|
| Re: LEARN C++ FOR DUMMIES
In case you haven't gotten an answer for that yet, I have one for you. Anything that starts with a # is something that is preprocessed before it gets compiled. All that means is that before the code even gets compiled, it will go through and 'perform' the actions. The actions are pretty simple and are also very useful. test.hpp: void Yay(); main.cpp: #include "test.hpp" int main() { return 0; } The #include macro just takes all the text from the included file, and replaces it. After this example is preprocessed, main.cpp would look like this: void Yay(); int main() { return 0; } #define TEST #define RAWR 2 This creates a variable A.K.A. macro when using #define. The first one just defines the macro TEST, and the second one actual sets a value to RAWR. Now, here's the useful part. A lot of compilers have macros to give you information. __LINE__ reports what line you are on. WIN32 or WIN64 will be defined if you are on windows, there are macros for other OS's too but I don't know them off the top of my head. There are macros defined for the type of compiler you are using. --- http://www.addipop.com
|
| Re: LEARN C++ FOR DUMMIES
Thank you everyone who's trying to help me
|
| Re: LEARN C++ FOR DUMMIES
You're welcome. If you need any help with anything else just send me a PM. :) --- I forgot what I was going to write...
|
| Re: LEARN C++ FOR DUMMIES
Lord posted: (12th Mar 2012, 10:31 pm) antiRTFM has the best tutorials around. --- ... |

