{"id":5082,"date":"2012-10-20T15:15:07","date_gmt":"2012-10-20T06:15:07","guid":{"rendered":"http:\/\/nanoappli.com\/blog\/?p=5082"},"modified":"2012-10-20T15:15:07","modified_gmt":"2012-10-20T06:15:07","slug":"c%e8%a8%80%e8%aa%9e%e5%90%88%e6%88%90%e6%8a%b5%e6%8a%97%e3%81%ae%e8%a8%88%e7%ae%97%e3%80%81%e5%88%86%e5%9c%a7%e5%9b%9e%e8%b7%af%e3%81%ae%e8%a8%88%e7%ae%97%e3%82%92%e8%a1%8c%e3%81%86%e3%83%97","status":"publish","type":"post","link":"http:\/\/nanoappli.com\/blog\/archives\/5082","title":{"rendered":"[C\u8a00\u8a9e]\u5408\u6210\u62b5\u6297\u306e\u8a08\u7b97\u3001\u5206\u5727\u56de\u8def\u306e\u8a08\u7b97\u3092\u884c\u3046\u30d7\u30ed\u30b0\u30e9\u30e0"},"content":{"rendered":"<p>\n\u62b5\u6297\u3092\u76f4\u5217\u3001\u4e26\u5217\u306b\u3064\u306a\u3044\u3060\u6642\u306e\u62b5\u6297\u5024\u3092\u8a08\u7b97\u3059\u308b<br \/>\n<pre lang=\"c\">\n#include <stdio.h>\n\nint main()\n{\n\tint r1;\n\tint r2;\n\n\tprintf( \"\u62b5\u6297\u50241\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044>\" );\n\tscanf( \"%d\", &r1 );\n\n\tprintf( \"\u62b5\u6297\u50242\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044>\" );\n\tscanf( \"%d\", &r2 );\n\n\n\tint serial   = r1 + r2;\n\tint parallel = (r1 * r2) \/ ( r1 + r2 );\n\n\tprintf( \"\u76f4\u5217\u63a5\u7d9a\u6642\u306e\u5408\u6210\u62b5\u6297: %d\u03a9\\n\", serial );\n\tprintf( \"\u4e26\u5217\u63a5\u7d9a\u6642\u306e\u5408\u6210\u62b5\u6297: %d\u03a9\\n\", parallel );\n\t\n\treturn 0;\n}\n<\/pre>\n<br \/>\n<br \/>\n<br \/>\n\u62b5\u6297\u306b\u3088\u308b\u96fb\u5727\u306e\u5206\u5727\u5024\u3092\u8a08\u7b97\u3059\u308b<br \/>\n<pre lang=\"c\">\n#include <stdio.h>\n\nint main()\n\tdouble ans;\n\tint voltage;\n\tint r1;\n\tint r2;\n\n\tprintf( \"\u96fb\u5727\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044(V)>\" );\n\tscanf( \"%d\", &voltage );\n\n\tprintf( \"\u62b5\u6297\u50241\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044(\u96fb\u6e90\u5074)>\" );\n\tscanf( \"%d\", &r1 );\n\n\tprintf( \"\u62b5\u6297\u50242\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044(GND\u5074 )>\" );\n\tscanf( \"%d\", &r2 );\n\n\n\tans = (double)( voltage * r2 ) \/ ( r1 + r2 );\n\n\tprintf( \"\u4e2d\u9593\u306e\u96fb\u5727\u306f: %.1fV\\n\", ans );\n\n\treturn 0;\n}\n<\/pre>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u62b5\u6297\u3092\u76f4\u5217\u3001\u4e26\u5217\u306b\u3064\u306a\u3044\u3060\u6642\u306e\u62b5\u6297\u5024\u3092\u8a08\u7b97\u3059\u308b #include int main() { int r1; int r2; printf( &#8220;\u62b5\u6297\u50241\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044>&#8221; ); scanf( &#8220;%d&#8221;, &#038;r1 ); printf( &#8220;\u62b5\u6297\u50242\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044>&#8221; ); scanf( &#8220;%d&#8221;, &#038;r2 ); int serial = r1 + r2; int parallel = (r1 * r2) \/ ( r1 + r2 ); printf( &#8220;\u76f4\u5217\u63a5\u7d9a\u6642\u306e\u5408\u6210\u62b5\u6297: %d\u03a9\\n&#8221;, serial ); printf( &#8220;\u4e26\u5217\u63a5\u7d9a\u6642\u306e\u5408\u6210\u62b5\u6297: %d\u03a9\\n&#8221;, parallel ); \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3577,"url":"http:\/\/nanoappli.com\/blog\/archives\/3577","url_meta":{"origin":5082,"position":0},"title":"[C\u8a00\u8a9e]printf\u306e\u5f8c\u306e\u5165\u529b\u5f85\u3061\u3067\u5165\u529b\u30d0\u30c3\u30d5\u30a1\u304c\u30af\u30ea\u30a2\u3055\u308c\u308b\u7406\u7531","date":"2012\u5e747\u670812\u65e5","format":false,"excerpt":"C\u8a00\u8a9e\u306e\u5165\u9580\u8005\u5411\u3051\u306b\u66f8\u304b\u308c\u305f\u66f8\u7c4d\u3092\u898b\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u826f\u304f\u6709\u308a\u307e\u3059\u3002 #include \u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3595,"url":"http:\/\/nanoappli.com\/blog\/archives\/3595","url_meta":{"origin":5082,"position":1},"title":"[C\u8a00\u8a9e\u5165\u9580]\u8907\u6570\u306e\u5206\u5c90\u3092switch\u3067\u30b7\u30f3\u30d7\u30eb\u306b\u8a18\u8ff0\u3059\u308b","date":"2012\u5e747\u670813\u65e5","format":false,"excerpt":"\u524d\u56de\u3001if\u6587\u306b\u3088\u308b\u51e6\u7406\u306e\u5206\u5c90\u3092\u8aac\u660e\u3057\u307e\u3057\u305f\u3002 C\u8a00\u8a9e\u306b\u3088\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306fif\u3055\u3048\u3042\u308c\u3070\u3042\u3089\u3086\u308b\u5206\u5c90\u306f\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3937,"url":"http:\/\/nanoappli.com\/blog\/archives\/3937","url_meta":{"origin":5082,"position":2},"title":"[C\u8a00\u8a9e]\u30ea\u30f3\u30af\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u57fa\u790e","date":"2012\u5e748\u670819\u65e5","format":false,"excerpt":"\u69cb\u9020\u4f53\u3068malloc\u306b\u3088\u308b\u30e1\u30e2\u30ea\u306e\u78ba\u4fdd\u3092\u5229\u7528\u3057\u305f\u3001\u30ea\u30f3\u30af\u30ea\u30b9\u30c8\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002 \/\/---\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3562,"url":"http:\/\/nanoappli.com\/blog\/archives\/3562","url_meta":{"origin":5082,"position":3},"title":"[C\u8a00\u8a9e\u5165\u9580]\u51e6\u7406\u306e\u5185\u5bb9\u3092if\u6587\u3067\u5206\u5c90\u3055\u305b\u308b","date":"2012\u5e747\u670812\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u78ba\u8a8d\u3057\u305f\u3088\u3046\u306b\u3001C\u8a00\u8a9e\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u57fa\u672c\u7684\u306b\u4e0a\u304b\u3089\u66f8\u3044\u305f\u9806\u306b\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u304f\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5914,"url":"http:\/\/nanoappli.com\/blog\/archives\/5914","url_meta":{"origin":5082,"position":4},"title":"\u96fb\u5727\u8a08(\u30c6\u30b9\u30bf)\u306e\u5185\u90e8\u62b5\u6297\u3092\u8abf\u3079\u308b\u65b9\u6cd5","date":"2012\u5e7411\u670829\u65e5","format":false,"excerpt":"\u30c6\u30b9\u30bf(\u30c7\u30b8\u30bf\u30eb\u30de\u30eb\u30c1\u30e1\u30fc\u30bf)\u306e\u96fb\u5727\u8a08\u3092\u4f7f\u3046\u3068\u3001\u56de\u8def\u4e2d\u306e\u96fb\u4f4d\u5dee\u3092\u8a08\u6e2c\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002 \u96fb\u5727\u5024\u3092\u6e2c\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3536,"url":"http:\/\/nanoappli.com\/blog\/archives\/3536","url_meta":{"origin":5082,"position":5},"title":"[C\u8a00\u8a9e\u5165\u9580]\u8a08\u7b97\u3057\u305f\u5024\u3092\u5909\u6570\u306b\u4fdd\u5b58\u3059\u308b","date":"2012\u5e747\u670810\u65e5","format":false,"excerpt":"\u524d\u56de\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u5024\u3092\u5358\u306b\u5370\u5b57\u3059\u308b\u3060\u3051\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 \u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306f\u65e5\u672c\u8a9e\u3060\u3068\"\u96fb\u5b50\u8a08\u2026","rel":"","context":"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/5082"}],"collection":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/comments?post=5082"}],"version-history":[{"count":2,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/5082\/revisions"}],"predecessor-version":[{"id":5091,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/posts\/5082\/revisions\/5091"}],"wp:attachment":[{"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/media?parent=5082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/categories?post=5082"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nanoappli.com\/blog\/wp-json\/wp\/v2\/tags?post=5082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}