• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

programming language


Commit MetaInfo

Révision21d7bceb509dc16f0a6346388c41a9fcf63922e6 (tree)
l'heure2020-11-23 19:54:56
Auteurdhrname <dhrname@user...>
Commiterdhrname

Message de Log

Modify the comment

Change Summary

Modification

--- a/main.cpp
+++ b/main.cpp
@@ -28,7 +28,27 @@
2828
2929 /*Nodeの抽象クラス
3030 * 5方向リンクのリスト
31- * これを型として使う。*/
31+ * これを型として使う。
32+ *
33+ *使用例
34+ * Node* a = node<float>(1.0);
35+ * a.appendChild(node<int>(1));
36+ * a.appendChild(node<std::string>("hoge"));
37+ *
38+ * while (a->isNode())
39+ * {
40+ * if ( a->isCaseOf(typeid(int)) )
41+ * {
42+ * int num = a->getValue();
43+ * }
44+ * else if ( a->isCaseOf(typeid(std::string)) )
45+ * {
46+ * std::string str = a->getValue();
47+ * }
48+ * }
49+ * なお、isCaseOfメンバ関数の名前の由来は、ダイクストラ、ホーア、ウィルトたちが、
50+ * 熟慮したうえで生み出したcase...of...文である。
51+ **/
3252 class Node
3353 {
3454 public: