Commit Graph

72 Commits

Author SHA1 Message Date
Renze Yu
6c4a7afacc
add missing spaces after // in c++ 2018-12-28 23:50:16 +08:00
Ankush Agarwal
00bb4b8a70
efficient typo fix 2018-10-22 14:13:58 -07:00
Ankush Agarwal
2e6208c754
Update comments 2018-10-22 09:12:29 -07:00
Ankush Agarwal
129abf6113
Add comments about unordered_map and unordered_set 2018-10-22 08:44:21 -07:00
Matthew Biondi
3cfb769bfb Addresses #3009, corrects C++ headers description 2018-10-18 12:26:26 -04:00
Divay Prakash
5117208ead Fix links and list styling 2018-10-14 05:26:21 +05:30
Apoorv Choubey
2242ad7a17 add C++ resource 2018-10-13 22:28:57 +05:30
Mario
cd379d9e9e [c++/en] container -> vector (#2838)
* 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
2017-09-12 08:21:23 +00:00
Andre Polykanine A.K.A. Menelion Elensúlë
c076537cf9 [c++/en] Added public declaration. Fixed #2805 2017-08-30 02:46:49 +03:00
Pratik Karki
d69afc4039 fix language code suffix(#2832) 2017-08-25 14:24:43 +05:45
ven
eb44c5bc91 Update c++.html.markdown 2017-05-18 12:48:46 +02:00
omgee
ae16d45078 [c++/en,es,it,br,ru,ch] Fix forgotten namespace std:: (#2619) 2017-01-03 08:41:35 +01:00
George Gognadze
1f1f59d9b4 c++/en typo, formatting fixes (#2531)
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
2016-10-30 10:58:59 +01:00
Andrew Chellis
042ed50381 [c++/en] Fix typo of iterator (#2501)
iteartor -> iterator
2016-10-24 09:43:42 +02:00
Valery Cherepanov
47679dfcbe Some minor (mostly stylistic) fixes in C++ 2016-08-02 16:32:38 +03:00
Jatin Dhankhar
c50ff92996 Added the Logical and bitwise operators section, fixes merge issue with #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.
2016-06-27 15:30:07 +02:00
Ankush goyal
281ba5b37a Containers Added (#1942)
* Containers Added

* Text Formatting

Added required spaces between text and //
2016-06-26 22:49:51 +02:00
Geoff Liu
1d562740f3 Remove a section from c++, fixes #2130 2016-02-15 14:33:23 -05:00
AndrejPetelin
1bb2535efd Update c++.html.markdown
v.empty() queries if v is empty while v.clear() actually clears it (or rather sets size to 0).
2016-01-31 16:08:28 +01:00
ven
e1016455d5 #2119 fixups 2016-01-28 14:04:41 +01:00
Jaskamal Kainth
fa2b171008 [C++/en] Tuple , Updated 2016-01-28 18:22:11 +05:30
Jaskamal Kainth
4a1a6857ce [C++/en] Tuple , updated 2016-01-28 17:15:44 +05:30
Jaskamal Kainth
c805148618 [C++/en] Tuples in C++ 2016-01-28 15:26:35 +05:30
Jaskamal Kainth
32f18cd992 Added Tuple 2016-01-28 10:38:51 +05:30
bk2dcradle
e6866f5a26 More Fixes 2016-01-08 01:21:38 +05:30
bk2dcradle
19ead59c1f Add my Changes 2016-01-05 13:36:23 +05:30
John Rocamora
fd26c8ddfb Added missing semicolon 2015-12-12 17:51:23 -05:00
Brook Zhou
c3e769e4ac [cpp/en] comparator function for std containers 2015-10-31 16:27:42 -07:00
Cameron Wood
ca435fbb0d [C++/en] Added in Enum information
Added in some information about enums in C++ including some different
use cases
2015-10-17 06:05:54 -04:00
Cameron Wood
e32eb715ef [C++/en] Small inheritance clarification
Clarified that private members are inherited but are not directly
accessible
2015-10-11 03:41:20 -04:00
George Gognadze
9d64b532f8 Update c++.html.markdown
spelling error
2015-10-07 01:27:12 +04:00
Pushkar Sharma
3b246fd869 Grammar
the address
2015-10-05 00:32:34 +05:30
Pushkar Sharma
87e8e77e5f Fixed a mistake from previous commit.
Better explained reference address.
2015-10-05 00:13:54 +05:30
Pushkar Sharma
9bc553c46c Update c++.html.markdown
Regarding issue #1216, Better explaining the Reference 'fooRef'.
2015-10-04 10:12:55 +05:30
Alva Connor Waters
c4b8281cee Add to contributors 2015-10-02 16:19:29 +00:00
Alva Connor Waters
12286a4b78 Misc. typos and formatting 2015-10-02 16:10:22 +00:00
Alva Connor Waters
455afa3a7b More explanation on virtual destructors 2015-10-02 16:10:22 +00:00
Alva Connor Waters
ae86e4ebab Clarify character literals 2015-10-02 16:10:01 +00:00
George Gognadze
8eb410208a Update c++.html.markdown
o should be capitalized.
this: overrides
should be: Overrides
2015-10-01 18:55:28 +04:00
Geoff Liu
85f6ba0b57 A note about RVO 2015-09-02 00:46:30 -06:00
Geoff Liu
fc9ae44e48 Now that we explained move semantics 2015-08-30 14:46:46 -06:00
Geoff Liu
a230d76307 More about temporary objects 2015-08-30 14:41:02 -06:00
Geoff Liu
eb7e58d5fc Merge remote-tracking branch 'upstream/master' 2015-08-30 14:22:11 -06:00
Geoff Liu
1d1def16a5 A little more about C++ references 2015-08-30 14:20:18 -06:00
Geoff Liu
97b97408ea Fix C++ namespace explanation 2015-08-28 11:48:38 -06:00
Adam
06889be239 Updated other exception to also be runtime_error type instead. 2015-06-02 19:14:52 -04:00
Adam
894792e1e1 Using std::runtime_error instead of std::exception. 2015-06-02 16:30:35 -04:00
Adam
47d3cea47e Template example class should have public method so it can get called externally. 2015-06-01 22:00:52 -04:00
Adam
cea52ca434 Exceptions do not take a string argument in their constructor. 2015-06-01 21:57:18 -04:00
Adam
3db1042157 Add missing semicolons. 2015-05-31 21:42:03 -04:00