Giter Site home page Giter Site logo

liusongxiang / cpp_primer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chihyang/cpp_primer

0.0 2.0 0.0 1.03 MB

My solutions to C++ Primer(5th edition) exercises.

License: Apache License 2.0

Emacs Lisp 0.02% Makefile 1.33% C++ 98.27% C 0.03% Shell 0.36%

cpp_primer's Introduction

C++ Primer Solutions

My solutions to C++ Primer(5th edition) exercises, including problems that perplex me. Makefile for visual studio compiler and gcc will be added later.

Contents

Compiler Version

  • gcc: (tdm64-1) 5.1.0
  • clang: 3.7.0 (tags/RELEASE_370/final)
  • cl: Visual Studio 2013, version 18.00.40629

File Format

Solutions to exercises

  • Header files

Exer07_26_Sales_data.h

Where Exer07_26 corresponds to exercise 7.26, _Sales_data corresponds to the (primary) class defined in the header.

  • Source files

Exer01_13_1.cpp

Where Exer01_13 corresponds to exercise 1.13, _1 corresponds to the first question in the exercise. Whether _1 (_2, _3 and so on) appears depends on the number of questions of the exercise.

Illustrations or verifications of key points

Page046_underline.cpp

Where Page046 corresponds to the page number of the key point, and underline is the key point to be illustrated or verified.

Comments

Warning

Not every file could compile. Some programs are intended for repeating an error so that I can know definitely what is correct and what is not. Every program that cannot be compiled successfully begins with a WARNING comment as below:

// Warning: This is for verification. It CANNOT be compiled successfully by both compiler.
// The problem lies in line XX.

Generally, compile info will be added to the end of such files.

Before or after line XX, there are comments for concrete explanation of the error.

Notes

Many files contain notes about explanations on perplexing points. Here is the list of files that contain notes:

Makefiles

Every chapter has a separate makefile. These makefiles are written in different ways to show the usage of make. See Makefile under each chapter folder for details.

cpp_primer's People

Contributors

chihyang avatar

Watchers

 avatar  avatar

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.