This repository contains C++ sample codes that I collected from cplusplus.com with standard C++ 14. you can quickly find out how a certain language construct, or a popular function is generally used with samples.
To access or contribute the most recent modifications of these samples, find their github repository here: https://github.com/mahdimotamedi/Cpp-Tutorial-Samples-2017
I ran all samples with Visual Studio 2015 on Windows. I think it works with most of compilers. please report me the problems with other compilers.
- Structure of a program
- Variables and types
- Constants
- Operators
- Basic Input/Output
- Control Structures
- Functions
- Overloads and templates
- Name visibility
- Arrays
- Character sequences
- Pointers
- Dynamic Memory
- Data structures
- Other data types
- Classes (I)
- Classes (II)
- Special members
- Friendship and inheritance
- Polymorphism
- Type conversions
- Exceptions
- Preprocessor directives
- Input/Output with files
I started learning this language with Deitels book. but it reminded all important structures with cplusplus.com
The book: H. Deitel and P. Deitel, C++ How to Program, 5th ed. Prentice Hall, Jan. 2005.