summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
Commit message (Collapse)AuthorAgeLines
* Update c++.html.markdown (#4980)Mark Keller2024-06-18-1/+1
|
* Move comment in c++.html.markdown (#4979)Mark Keller2024-06-18-1/+1
|
* [c++/en] consistent indentationBoris Verkhovskiy2024-05-17-65/+65
|
* [c++/en] remove using namespace std (#4738)rilysh2024-05-17-71/+74
|
* [cpp/en] String length content addition (#4888)Harshit Gupta2024-04-07-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Add string.length() and string.size() example line Adds a line under the Strings section to add total string length by calculating the sum of two strings which have been given on output above with their sizes found out using string::length() and string::size() functions, with appropriate comment on this line. Signed-off-by: Harshit Gupta <hkg1412@gmail.com> * Add cstring strlen() example Includes <cstring> header to demonstrate length of a character array string which is C-compliant by using strlen() function available from this header supported in C++. Declared string is initialized with char array size [10] to just fit the string contents with '\0' terminator. Signed-off-by: Harshit Gupta <hkg1412@gmail.com> --------- Signed-off-by: Harshit Gupta <hkg1412@gmail.com>
* Remove leading and trailing empty lines in code blocksBoris Verkhovskiy2024-04-06-2/+1
|
* Update C++ docs to improve clarity on namespace.bharathcs2022-08-29-2/+8
| | | Make it immediately obvious what importing a namespace does, instead of just listing how to use fully qualified symbols.
* Update to uppercase for c++ and c# in indexMarcel Ribeiro-Dantas2022-08-02-1/+1
|
* [c++/en] Fix newline error (#4176)Alan Chang2022-01-04-1/+1
| | | | | * Fix newline error * use std::endl
* Add learncpp.com to further reading (#4237)James2021-11-01-1/+2
| | | I've been learning from this site, and it seems good, and the general consensus online is that it's one of the better online tutorials/books for learning C++.
* Update c++.html.markdownLilian Besson2021-01-31-10/+11
| | | | | Just forcing http:// links to be https:// when possible. I also read everything carefully and didn't find any mistake or easy improvements I could add (but I'm not that familiar with C++)
* Changed operator < to != (#4004)Priti Xavier2020-09-29-1/+1
|
* Replace newline string with newline characterSpencer Burris2020-09-12-11/+11
|
* Remove extra spaceRyan Huang2020-05-23-1/+1
|
* Minor fixes to C++ Smart Pointer sectionOllin Boer Bohan2019-08-31-23/+23
| | | | | | * Fix minor spelling / grammar problems ("tp de-allocate", "refences", "dont"...) * Remove filler words ("Basically", "As a matter of fact"...) * Remove spaces before parens in smart pointer initialization code sample (consistent with the other sections, e.g. the `Tuples` section) * Clarify `std::weak_ptr` use case
* [C++/de] fixed wrong spelling (#3579)LamdaLamdaLamda2019-08-03-4/+55
| | | | | | | | | | | | * Added [C++/de] * [C++/de] filename fixed. * [C++/de] language code in filename added * [C++/de] fixed wrong spelling * [C++/en] smart pointer added
* c++: Add more explanation to the += overloading examplecodesoap2019-06-30-0/+4
|
* [en] Typo in c++Max2019-03-10-1/+1
|
* Move section about containers its logical placeGergely Máté2019-01-04-96/+98
| | | | | Probably it was its original place, just after templates are introduced, and before first usage of container types.
* add missing spaces after `//` in c++Renze Yu2018-12-28-4/+4
|
* efficient typo fixAnkush Agarwal2018-10-22-2/+2
|
* Update commentsAnkush Agarwal2018-10-22-2/+4
|
* Add comments about unordered_map and unordered_setAnkush Agarwal2018-10-22-0/+2
|
* Addresses #3009, corrects C++ headers descriptionMatthew Biondi2018-10-18-2/+8
|
* Fix links and list stylingDivay Prakash2018-10-14-6/+3
|
* add C++ resourceApoorv Choubey2018-10-13-0/+2
|
* [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