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
Adam
462ac89217
Remove return type from Dog class constructor and destructor, change nonexistant printDog function to print.
2015-05-31 21:38:03 -04:00
Hans Ole Hatzel
bad283ee14
[c++/en] Fixed typos.
2015-05-20 19:43:41 +02:00
Geoff Liu
25bd06d77a
comment changes
2015-05-06 15:25:28 -06:00
Geoff Liu
6c635d1c3e
Response to comments
2015-05-05 00:45:14 -06:00
Geoff Liu
05c2617aaf
Minor fix
2015-05-04 02:45:31 -06:00
Geoff Liu
c21cf5a1e2
Templates and such
2015-05-04 02:40:04 -06:00
MoreMoschops
7d5368eda1
Neither gcc nor clang accept void main.
...
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)
2015-04-26 15:33:29 +01:00
Arnie97
299f3de0ea
[c++/en] Fix spelling
2015-04-11 12:52:23 +08:00
Arnie97
c88c28058b
Closes #1000
2015-03-13 23:40:45 +08:00
Riku-Pekka Silvola
ebdde37244
fixed some typos
2015-02-25 18:10:57 +01:00
Geoff Liu
bf493c07ed
Reassignment to reference doesn't cause error
2014-12-01 21:42:16 -07:00
Subramanian
00c4a6324e
correcting the setName method
...
set the method argument dogsName to name, instead of doggie_name
2014-10-27 09:06:43 +05:30