https://github.com/mertturkmenoglu/cpp
C++ examples
https://github.com/mertturkmenoglu/cpp
c-plus-plus cpp example-code training
Last synced: 2 months ago
JSON representation
C++ examples
- Host: GitHub
- URL: https://github.com/mertturkmenoglu/cpp
- Owner: mertturkmenoglu
- License: gpl-3.0
- Created: 2019-04-27T00:04:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-02T10:26:14.000Z (almost 6 years ago)
- Last Synced: 2025-06-13T11:50:18.908Z (4 months ago)
- Topics: c-plus-plus, cpp, example-code, training
- Language: C++
- Size: 287 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

  
# C++ Language Examples
***
# Description
* This repository contains my **C++** language example codes.
* Official C++ website: https://isocpp.org/
* See the LICENSE file for details.
* You need to install **GCC** to your system(or another compiler). Please follow the [original source].
***
# Project Structure```
|-> src
|-> examples
|-> practice
|-> stl
CMakeLists.txt
```
* `examples`: Language feature examples.
* `practice`: Coding practices and showing language features on algorithms.
* `stl`: You may find `C++ Standard Template Library` examples in this directory.
* `CMakeLists.txt`: All executable links should be declared here.
***
# Build
#### Tools Required
* GCC (or another C++ compiler)
* A C++ IDE (preferably **CLion**, Visual Studio, Eclipse) or a text editor
#### Setup
* You need **a C++ compiler** on your system.
* **Fork** and **clone** the repository:
* After getting repository on your local environment, create a branch.
* You can edit source code files or you can create **C++** project on your IDE.
* Project uses **CLion** structure but you do not have to.
# Contributing
* Fork and clone the repository.
* Follow the steps under the build chapter.
* Do not add any IDE project files(CLion project files are already added).
* Push and open a pull request.
* All ideas and helps are welcome. For more, please contact with me.
# GCC Commands / Flags
* Turn on warnings: `-Wall -Wextra`
* Warnings for non virtual destructors: `-Wnon-virtual-dtor`
* For more warnings and stable compiling: `-pedantic`
* Turn on debugging: `-g`
* Name of the output file: `-o main`
* `g++ main.cpp -Wall -Wextra -Wnon-virtual-dtor -pedantic -g -o main`
# Authors
* Mert Türkmenoğlu[original source]: https://gcc.gnu.org/