Skip to content

Commit

Permalink
Merge pull request EzoeRyou#104 from retlat/patch-2
Browse files Browse the repository at this point in the history
拡張子の間違いを修正
  • Loading branch information
EzoeRyou authored Jul 23, 2019
2 parents 4135e08 + db36cce commit 3965627
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 3965627

Please sign in to comment.