| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
set the method argument dogsName to name, instead of doggie_name
|
| |
|
|
|
|
|
| |
Future contributions will include standard library containers
and C++11 features.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|
|
| |
[more] Minor indent correction at namespaces intro example
|
| |
|
|
c++
|