Skip to content

mahdimotamedi/Cpp-Tutorial-Samples-2017

Repository files navigation

C++ Tutorial Samples 2017

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

Running the Samples

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.

Contents

Basics of C++

  • Structure of a program
  • Variables and types
  • Constants
  • Operators
  • Basic Input/Output

Program structure

  • Control Structures
  • Functions
  • Overloads and templates
  • Name visibility

Compound data types

  • Arrays
  • Character sequences
  • Pointers
  • Dynamic Memory
  • Data structures
  • Other data types

Classes

  • Classes (I)
  • Classes (II)
  • Special members
  • Friendship and inheritance
  • Polymorphism

Other language features

  • Type conversions
  • Exceptions
  • Preprocessor directives

C++ Standard Library

  • Input/Output with files

References

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.

Releases

No releases published

Packages

No packages published

Languages