LoginSignup
0
0

More than 3 years have passed since last update.

【PHPで解いてみた】4章 C++入門 AtCoder Programming Guide for beginners (APG4b)

Posted at

4.01.includeディレクティブ

キーポイント

  • ソースファイル:ソースコード書いてあるファイル
  • ライブラリ:複数のファイルなどをまとめて便利に使えるようにしたものを
  • requireとincludeは、別ファイルに書かれているソースファイルやライブラリを今いるソースファイルに読み込んでいる。
    • requireとincludeの違い
      • require:致命的なエラー(Fatal)となり処理を停止
      • include:警告(Warning)となり処理は継続

4.02.名前空間

キーポイント

  • プログラムにおいて、クラスや関数などの名前の衝突を防ぐために名前空間を使用して、それぞれグループ化。
  • 「クラス」「インターフェイス」「関数」「定数」が名前空間お影響を受ける。
  • 読み込んだクラスや関数などと名前が衝突することを防ぐ
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0