Commit Graph

45 Commits

Author SHA1 Message Date
bk2dcradle
54c67dfb38 [c++] Added Lambda Expressions and Range for 2015-10-29 22:13:24 +05:30
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
Matt Kline
03d1bc5ed9 Address @levibostian's concerns for #800 2014-10-17 18:43:41 -07:00
Matt Kline
fbf3c6d588 Add C++ section about RAII
Future contributions will include standard library containers
and C++11 features.
2014-10-17 01:04:37 -07:00
Matt Kline
eadecf8b95 Spell out favorite (instead of fav) in C++ doc 2014-10-17 00:03:33 -07:00
Matt Kline
8e9d5af1ea Minor C++ fixes 2014-10-12 23:37:10 -07:00
Matt Kline
e1ed5393fc Major overhaul of C++ documentation
- Cleaned up and rephrased comments
- Removed old and erroneous information
- Normalized indentation to four spaces
- Normalized style to "Stroustrup style"
  (http://www.stroustrup.com/bs_faq2.html#layout-style)
- Added a section on references

In the near future I plan on additional sections covering idiomatic
use, such as RAII and C++11 paradigms.
2014-10-12 00:02:57 -07:00
Matt Kline
b39a6827e9 Remove trailing whitspace from c++.html.markdown 2014-10-09 22:58:09 -07:00
Matt Kline
dbb02b06b5 Add self as contributor to C++ doc 2014-10-09 22:58:02 -07:00
eternalthinker
7b95a1e921 Added correct syntax for c++ inheritance.
[more] Minor indent correction at namespaces intro example
2014-09-24 08:42:21 +05:30
Kirill
39b7ae4d18 Added missing ";" 2014-09-13 15:04:49 +06:00
Steven Basart
a055474864 Created c++ tutorial
c++
2014-09-10 18:04:18 -04:00