とらりもんHOME  Index  Search  Changes  Login

とらりもん - C++ Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

!良い入門サイト
* まず最初に: [[C++入門 (小林氏)|http://www.asahi-net.or.jp/~yf8k-kbys/newcpp0.html]]
* Windows VC++対応なのでちょっと注意: [[ロベールのC++教室|http://www7b.biglobe.ne.jp/~robe/cpphtml/index.html]]

!変数名の慣習的な接頭辞
* po... pointer
* pa ... pointer to an array
* psz ... pointer to a string terminated by zero 要するに, 文字列(の入った配列)
* adf ... array of double float
* papsz ... pointer to an array of pointers to string terminated by zero 要するに, 文字列(の入った配列)の配列。
[[https://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8#/media/File:Fudoin_iwayado01st3200.jpg]]

!その他
警告: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
→ 関数の引数をchar*からconst char*に変えればよい。