GithubHelp home page GithubHelp logo

cpp-tutorial-samples's Introduction

C++ Tutorial Samples

This repository contains C++ sample codes that I adopted from various sources to help instruct programming in C++ in 2005. These samples try to help newcomers quickly find an appropriate pattern for solving their programming problems. Also they can quickly find out how a certain language construct, or a popular function is generally used.

These samples are by no means complete, nor free from deficiencies. Feel free to make them complete or introduce them to more C++ newbies or teachers. The samples cover only the standard/ISO C++ language.

To access or contribute the most recent modifications of these samples, find their github repository here: https://github.com/sinairv/Cpp-Tutorial-Samples

Running the Samples

Each sample has a separate folder of its own, and is usually in a file named Prog.cpp. If you want to build a sample with Microsoft Visual Studio, then you need to create a project and copy the sample into that project by your own.

However there's a Makefile in each directory, which makes the process of building and running the samples easier in Linux/Unix and Cygwin. In order to build each sample, simply cd to its directory and run make to build the required executable. Run make clean to clean-up your directory. Also make full, first cleans and then rebuilds each sample.

References

Beside several Internet sources, the following are the main references that I used during the course of creating these samples. Most of the samples are adopted from the first reference. Even many of the comments are quoted from it. I strongly recommend studying the first reference, if you are learning C++ as a first programming language.

[1] H. Deitel and P. Deitel, C++ How to Program, 5th ed. Prentice Hall, Jan. 2005.

[2] B. Stroustrup, The C++ Programming Language, 3rd ed. Addison-Wesley Professional, Jun. 1997.

[3] H. Schildt, C++: The Complete Reference, 4th ed. McGraw-Hill Osborne Media, Nov. 2002.

cpp-tutorial-samples's People

Contributors

sinairv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpp-tutorial-samples's Issues

On windows7 Code::Blocks20.03, Histogram program can't do well!

Cpp-Tutorial-Samples/Histogram

Dear sinairv

When I run the code in Histogram on code::Blocks, It act not like what I expected. I don't know what happen to it.
When I copy the code from the github file ,the action went well .

Here is editor

D%7)SCM1593Y7O095RS`99K

Here is the result.

I can't explain why the value column, is not 18 20 but 181 and 201.

}3W~}BWOH%OZ62KH CXHK}2

I install Code::Blocks using codeblocks-20.03mingw-setup.exe file from https://nchc.dl.sourceforge.net/project/codeblocks/Binaries/20.03/Windows/codeblocks-20.03mingw-setup.exe

It's my pleasure if you are willing to explain it !

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.