EOSERV Forum > Programming > LEARN C++ FOR DUMMIES
Topic is locked.
Page: << 1 >>
LEARN C++ FOR DUMMIES
Author Message
Post #136821 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.....


#include <iostream>
Lines beginning with a hash sign (#) are directives for the preprocessor. They are not regular code lines with expressions but indications for the compiler's preprocessor. In this case the directive #include <iostream> tells the preprocessor to include theiostream standard file. This specific file (iostream) includes the declarations of the basic standard input-output library in C++, and it is included because its functionality is going to be used later in the program.


- 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 #include <iostream> tells the preprocessor to include the iostream standard file. likewhat is all this suppose to mean? I am completely new to C++ and need a tutorial that explains every concept deep within definition. so if someone can help me with learning c++ or give me a great learning guide, i would very much appreciate it with great honor

14 years, 15 weeks ago
Post #136823 Re: LEARN C++ FOR DUMMIES 14 years, 15 weeks ago
Post #136824 Re: LEARN C++ FOR DUMMIES

thats not even a good guide jasper. i need a full guide

14 years, 15 weeks ago
Post #136827 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.
14 years, 15 weeks ago
Post #136848 Re: LEARN C++ FOR DUMMIES

He wants everyone to spoon feed him

---
CN:BH 4 lyfe
14 years, 15 weeks ago
Post #136873 Re: LEARN C++ FOR DUMMIES

http://thenewboston.org

---
i hate kody
14 years, 15 weeks ago
Post #136883 Re: LEARN C++ FOR DUMMIES 14 years, 15 weeks ago
Post #137075 Re: LEARN C++ FOR DUMMIES 14 years, 15 weeks ago
Post #137088 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
14 years, 15 weeks ago
Post #137645 Re: LEARN C++ FOR DUMMIES

Thank you everyone who's trying to help me

14 years, 14 weeks ago
Post #137646 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...
14 years, 14 weeks ago
Post #137656 Re: LEARN C++ FOR DUMMIES
Lord posted: (12th Mar 2012, 10:31 pm)

http://www.youtube.com/watch?v=tyVhn0FWWB4

it's a really good guide


antiRTFM has the best tutorials around.
---
...
14 years, 14 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Programming > LEARN C++ FOR DUMMIES