Coder Social home page Coder Social logo

jndwi / pppucpp2ndjp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 30.4 MB

"C++によるプログラミングの原則と実践" の演習問題の解答

License: MIT License

C++ 60.46% C 32.21% Makefile 1.81% Batchfile 1.28% Roff 2.76% CMake 0.58% R 0.01% Shell 0.57% WebAssembly 0.33%
stroustrup cpp

pppucpp2ndjp's Introduction

C++によるプログラミングの原則と実践


書籍『C++によるプログラミングの原則と実践』 で取り扱っている問題(Try this、ドリル、練習問題)の解答。

ディレクトリ構成

ディレクトリ名 説明
ch02 2章で取り扱った問題の解答
ch03 3章で取り扱った問題の解答
・・・ ・・・
images Markdown等に使用した画像
include 本書で使用されるヘッダーファイル等
Programming-code http://www.stroustrup.com/Programming/Programming-code.zip の内容物、Web Archive から

コンパイルと実行

LLVM Clang

# Linux
$ clang++ -o example1 ch02/2_drill_2_helloWorld.cpp
$ ./example1

# Windows
$ clang++ -o example1.exe .\ch02\2_drill_2_helloWorld.cpp
$ .\example1.exe

GCC

# Linux
$ g++ -o example2 ch02/2_drill_2_helloWorld.cpp
$ ./example2

# Windows
$ g++ -o example2.exe .\ch02\2_drill_2_helloWorld.cpp
$ .\example2.exe

MSVC cl.exe (Windows)

# Develop Powershell for VS 2019
$ cl /source-charset:utf-8 .\ch02\2_drill_2_helloWorld.cpp
$ .\2_drill_2_helloWorld.exe

ノート

  • std_lib_facilities.husing namespace stdは含まれているが std::は敢えて書いてある。

参考


pppucpp2ndjp's People

Contributors

towa0131 avatar

Stargazers

 avatar

Watchers

 avatar

pppucpp2ndjp's Issues

Section_04/p116_drill_no08.cpp has Debug error

An error occurred when an invalid unit was entered. example↴

[p116_drill_no08.exe]

Enter valid a floating point number and distance unit, | to exit: --->
12 meter

Error popup ↴

[Microsoft Visual C++ Runtime Library]

Debug Error!

Program: ...\section_04\p116_drill_no08\Debug\p116_drill_no08.exe

abort() has been called

(Press Retry to debug the application)

---------------------------
中止(A)   再試行(R)   無視(I)   
---------------------------

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.