summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
Commit message (Collapse)AuthorAgeLines
* [c++/en] container -> vector (#2838)Mario2017-09-12-15/+15
| | | | | | | | | | | | | | | | | | * container -> vector fixed errors: - "vector_name" and "Vector_name" (different case) would have resulted in a compile time error, now: "my_vector" enhancements: - typedef for consistency - two push_backs to show its purpose - both iteration types now have a working execution block (both output the vector's content) - the first "classic loop" now also shows the operator [], which therefor is removed from below - include and for with a white spaces for readability * removed the typedef the `typedef` was used to show that we will be using `string` as our base for all operations, but we are free to use any other type; of course it is technically not needed and might look like a redundancy. the two `cin` also look redundant, so I changed this into one `cin` and two `push_back`s
* [c++/en] Added public declaration. Fixed #2805Andre Polykanine A.K.A. Menelion Elensúlë2017-08-30-1/+1
|
* fix language code suffix(#2832)Pratik Karki2017-08-25-1/+1
|
* Update c++.html.markdownven2017-05-18-1/+1
|
* [c++/en,es,it,br,ru,ch] Fix forgotten namespace std:: (#2619)omgee2017-01-03-1/+1
|
* c++/en typo, formatting fixes (#2531)George Gognadze2016-10-30-3/+3
| | | | | | | | | | | | | | | | | Space should be removed. before: // concatenated_tuple becomes = (10, 'A', 1e9, 15, 11, 'A' ,3.14141) after: // concatenated_tuple becomes = (10, 'A', 1e9, 15, 11, 'A', 3.14141) Typo initialize is correct form. before: map<char, int> mymap; // Will initalize the map with key as char and value as int after: map<char, int> mymap; // Will initialize the map with key as char and value as int Typo corresponding is correct form. before: // To find the value correponsing to a key after: // To find the value corresponding to a key
* [c++/en] Fix typo of iterator (#2501)Andrew Chellis2016-10-24-1/+1
| | | iteartor -> iterator
* Some minor (mostly stylistic) fixes in C++Valery Cherepanov2016-08-02-49/+49
|
* Added the Logical and bitwise operators section, fixes merge issue with ↵Jatin Dhankhar2016-06-27-6/+51
| | | | | | | | | | | #1817 (#2292) * Added the Logical and bitwise operators section * Added a note for Short Circuit evaluation Excerpt from https://en.wikipedia.org/wiki/Short-circuit_evaluation C++ uses minimal evaluation, or McCarthy evaluation (after John McCarthy (computer scientist)) is the semantics of some Boolean operators in some programming languages in which the second argument is executed or evaluated only if the first argument does not suffice to determine the value of the expression: when the first argument of the AND function evaluates to false, the overall value must be false; and when the first argument of the OR function evaluates to true, the overall value must be true. In some programming languages (Lisp), the usual Boolean operators are short-circuit.
* Containers Added (#1942)Ankush goyal2016-06-26-0/+94
| | | | | | | | * Containers Added * Text Formatting Added required spaces between text and //
* Remove a section from c++, fixes #2130Geoff Liu2016-02-15-24/+8
|
* Update c++.html.markdownAndrejPetelin2016-01-31-1/+1
| | | v.empty() queries if v is empty while v.clear() actually clears it (or rather sets size to 0).
* #2119 fixupsven2016-01-28-7/+7
|
* [C++/en] Tuple , UpdatedJaskamal Kainth2016-01-28-3/+2
|
* [C++/en] Tuple , updatedJaskamal Kainth2016-01-28-5/+5
|
* [C++/en] Tuples in C++Jaskamal Kainth2016-01-28-7/+6
|
* Added TupleJaskamal Kainth2016-01-28-0/+48
|
* More Fixesbk2dcradle2016-01-08-11/+14
|
* Add my Changesbk2dcradle2016-01-05-0/+67
|
* Added missing semicolonJohn Rocamora2015-12-12-1/+1
|
* [cpp/en] comparator function for std containersBrook Zhou2015-10-31-0/+18
|
* [C++/en] Added in Enum informationCameron Wood2015-10-17-0/+64
| | | | | Added in some information about enums in C++ including some different use cases
* [C++/en] Small inheritance clarificationCameron Wood2015-10-11-0/+2
| | | | | Clarified that private members are inherited but are not directly accessible
* Update c++.html.markdownGeorge Gognadze2015-10-07-1/+1
| | | spelling error
* GrammarPushkar Sharma2015-10-05-2/+2
| | | the address
* Fixed a mistake from previous commit.Pushkar Sharma2015-10-05-2/+2
| | | Better explained reference address.
* Update c++.html.markdownPushkar Sharma2015-10-04-0/+6
| | | Regarding issue #1216, Better explaining the Reference 'fooRef'.
* Add to contributorsAlva Connor Waters2015-10-02-0/+1
|
* Misc. typos and formattingAlva Connor Waters2015-10-02-33/+39
|
* More explanation on virtual destructorsAlva Connor Waters2015-10-02-1/+4
|
* Clarify character literalsAlva Connor Waters2015-10-02-4/+4
|
* Update c++.html.markdownGeorge Gognadze2015-10-01-1/+1
| | | | | o should be capitalized. this: overrides should be: Overrides
* A note about RVOGeoff Liu2015-09-02-1/+4
|
* Now that we explained move semanticsGeoff Liu2015-08-30-1/+2
|
* More about temporary objectsGeoff Liu2015-08-30-0/+16
|
* Merge remote-tracking branch 'upstream/master'Geoff Liu2015-08-30-3/+4
|\
| * Fix C++ namespace explanationGeoff Liu2015-08-28-3/+4
| |
* | A little more about C++ referencesGeoff Liu2015-08-30-0/+51
|/
* Updated other exception to also be runtime_error type instead.Adam2015-06-02-1/+1
|
* Using std::runtime_error instead of std::exception.Adam2015-06-02-1/+2
|
* Template example class should have public method so it can get called ↵Adam2015-06-01-0/+1
| | | | externally.
* Exceptions do not take a string argument in their constructor.Adam2015-06-01-2/+2
|
* Add missing semicolons.Adam2015-05-31-2/+2
|
* Remove return type from Dog class constructor and destructor, change ↵Adam2015-05-31-3/+3
| | | | nonexistant printDog function to print.
* [c++/en] Fixed typos.Hans Ole Hatzel2015-05-20-3/+3
|
* comment changesGeoff Liu2015-05-06-3/+3
|
* Response to commentsGeoff Liu2015-05-05-8/+31
|
* Minor fixGeoff Liu2015-05-04-3/+4
|
* Templates and suchGeoff Liu2015-05-04-0/+102
|
* Neither gcc nor clang accept void main.MoreMoschops2015-04-26-2/+1
| | | | | | | | | | | | | | | | | | | | | | | Neither gcc nor clang accept void main. Remove this bad information. Tested as follows: $ cat 045.cpp void main() { } $ g++ 045.cpp 045.cpp:1:11: error: ‘::main’ must return ‘int’ void main() ^ $ clang++ 045.cpp 045.cpp:1:1: error: 'main' must return 'int' void main() ^~~~ int 1 error generated. $ g++ --version g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2 $ clang++ --version Ubuntu clang version 3.4.2-3ubuntu2~xedgers (tags/RELEASE_34/dot2-final) (based on LLVM 3.4.2)