{"id":7415,"date":"2024-11-07T15:53:38","date_gmt":"2024-11-07T06:53:38","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=7415"},"modified":"2024-11-12T15:40:57","modified_gmt":"2024-11-12T06:40:57","slug":"%e7%9c%9f%e5%81%bd%e5%80%a4","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/7415","title":{"rendered":"\u771f\u507d\u5024"},"content":{"rendered":"<h3>C\u8a00\u8a9e<\/h3>\n<p>\u578b : int, char, long \u306a\u3069<\/p>\n<table>\n<tbody>\n<tr>\n<th>&nbsp;<\/th>\n<th>\u5024<\/th>\n<th>\u5024\u306e\u4f8b<\/th>\n<\/tr>\n<tr>\n<td>\u771f<\/td>\n<td>\u975e\u30bc\u30ed<\/td>\n<td><code>1<\/code>, <code>-1<\/code>, <code>0xff<\/code>, &#8230;<\/td>\n<\/tr>\n<tr>\n<td>\u507d<\/td>\n<td>\u30bc\u30ed<\/td>\n<td><code>0<\/code>, <code>'\\0'<\/code>, <code>NULL<\/code<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--more--><\/p>\n<h4>T-Kernel \u5171\u901a\u30c7\u30fc\u30bf\u578b (ITRON)<\/h4>\n<pre class=\"lang:c decode:true \" >\/*\r\n * \u30d6\u30fc\u30eb\u5024\r\n *      TRUE = 1 \u3068\u5b9a\u7fa9\u3059\u308b\u304c\u30010 \u4ee5\u5916\u306f\u3059\u3079\u3066\u771f(TRUE)\u3067\u3042\u308b\u3002\r\n *      \u3057\u305f\u304c\u3063\u3066\u3001bool == TRUE \u306e\u69d8\u306a\u5224\u5b9a\u3092\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u3002\r\n *      bool != FALSE \u306e\u69d8\u306b\u5224\u5b9a\u3059\u308b\u3053\u3068\u3002\r\n *\/\r\ntypedef INT             BOOL;\r\n#define TRUE            1           \/* \u771f *\/\r\n#define FALSE           0           \/* \u507d *\/<\/pre>\n<h3>C++<\/h3>\n<p>\u578b : bool (\u30b5\u30a4\u30ba : \u5b9f\u88c5\u4f9d\u5b58)<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u771f<\/td>\n<td>true<\/td>\n<\/tr>\n<tr>\n<td>\u507d<\/td>\n<td>false<\/td>\n<\/tbody>\n<\/table>\n<h3>Python<\/h3>\n<p>\u578b : bool<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u771f<\/td>\n<td>True<\/td>\n<\/tr>\n<tr>\n<td>\u507d<\/td>\n<td>False<\/td>\n<\/tbody>\n<\/table>\n<ul>\n<li><a href=\"https:\/\/docs.python.org\/3\/library\/stdtypes.html#typebool\">Python Official Documentation - Boolean Type bool<\/a><\/li>\n<\/ul>\n<h3>Ruby<\/h3>\n<p>\u578b : TrueClass \u3068 FalseClass<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u771f<\/td>\n<td>true<\/td>\n<td>\u64ec\u4f3c\u5909\u6570\u3002TrueClass\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u507d<\/td>\n<td>false<\/td>\n<td>\u64ec\u4f3c\u5909\u6570\u3002FalseClass\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002<\/td>\n<\/tbody>\n<\/table>\n<ul>\n<li><a href=\"https:\/\/docs.ruby-lang.org\/ja\/latest\/doc\/spec=2fvariables.html#pseudo\">Ruby Official Documentation - \u64ec\u4f3c\u5909\u6570<\/a><\/li>\n<li><a href=\"https:\/\/docs.ruby-lang.org\/ja\/latest\/class\/TrueClass.html\">Ruby Official Documentation - class TrueClass<\/a><\/li>\n<li><a href=\"https:\/\/docs.ruby-lang.org\/ja\/latest\/class\/FalseClass.html\">Ruby Official Documentation - class FalseClass<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C\u8a00\u8a9e \u578b : int, char, long \u306a\u3069 &nbsp; \u5024 \u5024\u306e\u4f8b \u771f \u975e\u30bc\u30ed 1, -1, 0xff, &#8230; \u507d \u30bc\u30ed 0, &#8216;\\0&#8217;, NULL<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7415","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=7415"}],"version-history":[{"count":20,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7415\/revisions"}],"predecessor-version":[{"id":7491,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/7415\/revisions\/7491"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=7415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=7415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=7415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}