Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
wiki2:cpp:notes [2015/10/09 13:49] alfred [Use] |
wiki2:cpp:notes [2020/05/09 09:25] (actual) |
||
|---|---|---|---|
| Línea 5: | Línea 5: | ||
| * **C++11** is the ISO C++ standard ratified in 2011. The previous standard is often referred to as C++98 or C++03; the differences between C++98 and C++03 are so few and so technical that they ought not concern users. C++14 is the informal name for a recent revision of the C++ standard. It is intended to be a small extension over C++11, featuring mainly bug fixes and small improvements. | * **C++11** is the ISO C++ standard ratified in 2011. The previous standard is often referred to as C++98 or C++03; the differences between C++98 and C++03 are so few and so technical that they ought not concern users. C++14 is the informal name for a recent revision of the C++ standard. It is intended to be a small extension over C++11, featuring mainly bug fixes and small improvements. | ||
| * **Differences between a class and a struct** in C++ are that structs have default public members and bases and classes have default private members and bases. Both classes and structs can have a mixture of public and private members, can use inheritance, and can have member functions. Classes create a namespace that also encapsulate the functions for manipulating its data elements. Classes may not be used when interfacing with C, because C does not have a concept of classes. | * **Differences between a class and a struct** in C++ are that structs have default public members and bases and classes have default private members and bases. Both classes and structs can have a mixture of public and private members, can use inheritance, and can have member functions. Classes create a namespace that also encapsulate the functions for manipulating its data elements. Classes may not be used when interfacing with C, because C does not have a concept of classes. | ||
| + | |||
| + | ==== Maps ==== | ||
| + | |||
| + | * {{:wiki2:cpp:maps.pdf|Maps}} | ||
| ===== Libraries ===== | ===== Libraries ===== | ||
| ==== Use ==== | ==== Use ==== | ||
| Línea 66: | Línea 70: | ||
| }; | }; | ||
| </code> | </code> | ||
| + | |||
| + | ===== Tips ===== | ||
| + | * Do not use ''this'' inside of a constructor. | ||