Skip to content

Commit

Permalink
拡張子の間違いを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
retlat authored Jul 21, 2019
1 parent a62477f commit db36cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 300-multiple-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ C++のソースファイルをコンパイルして実行可能ファイルを
`source.cpp`という名前のソースファイルがあるとき、ここから`program`という名前の実行可能ファイルを作るには、

~~~
$ g++ -o program source.file
$ g++ -o program source.cpp
~~~

としていた。毎回このコマンドを入力するのは面倒なので、`Makefile`を以下のように書いていた。
Expand Down Expand Up @@ -283,7 +283,7 @@ void f( double ) { }
名前は使う前に宣言が必要だが、肝心の定義は別のソースファイルに書いてある。宣言と定義を間違えてしまった場合はエラーになる。
~~~cpp
// print_int.hpp
// print_int.cpp
// 失敗状態を返す
bool print_int( int x )
{
Expand Down

0 comments on commit db36cce

Please sign in to comment.