Commit Graph

16 Commits

Author SHA1 Message Date
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