{"id":27643,"date":"2024-10-27T14:42:40","date_gmt":"2024-10-27T14:42:40","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=27643"},"modified":"2024-11-26T07:16:31","modified_gmt":"2024-11-26T07:16:31","slug":"c-%ec%bd%94%eb%94%a9%ed%85%8c%ec%8a%a4%ed%8a%b8-%ea%b0%95%ec%a2%8c-%ec%84%a0%eb%b6%84%ec%9d%98-%ea%b5%90%ec%b0%a8-%ec%97%ac%eb%b6%80-%ea%b5%ac%ed%95%98%ea%b8%b0-2","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/27643\/","title":{"rendered":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30"},"content":{"rendered":"<article>\n<p>\uc548\ub155\ud558\uc138\uc694, \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub97c \ud65c\uc6a9\ud558\uc5ec \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \uae30\ud558\ud559\uc801 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, \uc5ec\ub7ec \uac00\uc9c0 \uc751\uc6a9\uc774 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38\uc5d0 \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub429\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \uc124\uba85<\/h2>\n<p>\uc8fc\uc5b4\uc9c4 \ub450 \uac1c\uc758 \uc120\ubd84\uc774 \uad50\ucc28\ud558\ub294\uc9c0 \ud310\ub2e8\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc120\ubd84 A\ub294 \ub450 \uc810 P1(x1, y1)\uc640 P2(x2, y2)\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uace0, \uc120\ubd84 B\ub294 \ub450 \uc810 P3(x3, y3)\uc640 P4(x4, y4)\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\ub2e4\uace0 \uac00\uc815\ud569\uc2dc\ub2e4. \uc6b0\ub9ac\uc758 \ubaa9\ud45c\ub294 \uc120\ubd84 A\uc640 \uc120\ubd84 B\uac00 \uad50\ucc28\ud558\ub294\uc9c0 \uc5ec\ubd80\ub97c \uacb0\uc815\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c\uc758 \uc785\ub825<\/h2>\n<ul>\n<li>\uccab \ubc88\uc9f8 \uc120\ubd84\uc758 \ub05d\uc810 P1\uacfc P2\uc758 \uc88c\ud45c (x1, y1), (x2, y2)<\/li>\n<li>\ub450 \ubc88\uc9f8 \uc120\ubd84\uc758 \ub05d\uc810 P3\uc640 P4\uc758 \uc88c\ud45c (x3, y3), (x4, y4)<\/li>\n<\/ul>\n<h2>\ubb38\uc81c\uc758 \ucd9c\ub825<\/h2>\n<p>\uc120\ubd84 A\uc640 \uc120\ubd84 B\uac00 \uad50\ucc28\ud558\ub294 \uacbd\uc6b0 &#8220;1&#8221;\uc744, \uadf8\ub807\uc9c0 \uc54a\uc744 \uacbd\uc6b0 &#8220;0&#8221;\uc744 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/p>\n<h2>\ubb38\uc81c \uc811\uadfc \ubc29\ubc95<\/h2>\n<p>\uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \ud310\ub2e8\ud558\uae30 \uc704\ud574\uc11c \uc6b0\ub9ac\ub294 \uc8fc\uc5b4\uc9c4 \ub450 \uc120\ubd84\uc774 \uc11c\ub85c \uad50\ucc28\ud558\ub294\uc9c0\ub97c \uc27d\uac8c \ud310\ub2e8\ud560 \uc218 \uc788\ub294 \uae30\ud558\ud559\uc801 \ubc29\ubc95\uc744 \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4. \uc5ec\uae30\uc11c \uace0\ub824\ud574\uc57c \ud560 \uba87 \uac00\uc9c0 \uacbd\uc6b0\uac00 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ol>\n<li>\ub450 \uc120\ubd84\uc774 \ud3c9\ud589\ud558\ub294 \uacbd\uc6b0<\/li>\n<li>\ud55c \uc120\ubd84\uc774 \ub2e4\ub978 \uc120\ubd84\uc744 \uac00\ub85c\ub9c9\ub294 \uacbd\uc6b0<\/li>\n<li>\ub450 \uc120\ubd84\uc758 \ub05d\uc810\uc774 \ub3d9\uc77c\ud55c \uacbd\uc6b0<\/li>\n<li>\ud2b9\uc815 \uc870\uac74\uc5d0\uc11c\uc758 \uc811\ucd09 \uc5ec\ubd80<\/li>\n<\/ol>\n<h2>\uae30\ud558\ud559\uc801 \uac1c\ub150<\/h2>\n<p>\uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \ud310\ubcc4\ud558\uae30 \uc704\ud574, \uc6b0\ub9ac\ub294 \ubca1\ud130\ub97c \uc0ac\uc6a9\ud55c \uae30\ud558\ud559\uc801 \uc811\uadfc\uc744 \ud560 \uac83\uc785\ub2c8\ub2e4. \ub450 \uc120\ubd84\uc758 \ubc29\uc815\uc2dd\uc744 \ud45c\uae30\ud560 \uc218 \uc788\uc73c\uba70, \uc774\ub4e4\uc744 \ubca1\ud130\ub85c \ubcc0\ud658 \ud6c4 \uad50\ucc28 \uc5ec\ubd80\ub97c \ud310\ub2e8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ub450 \uc810 (x1, y1)\uacfc (x2, y2)\uc5d0\uc11c \uc120\ubd84 A\ub97c \uc0dd\uac01\ud558\uace0, \ub450 \uc810 (x3, y3)\uacfc (x4, y4)\uc5d0\uc11c \uc120\ubd84 B\ub97c \uc0dd\uac01\ud574 \ubd05\uc2dc\ub2e4. \uc120\ubd84 A\uc640 B\uac00 \uad50\ucc28\ud558\ub294\uc9c0\ub294 \uc120\ubd84\uc758 \ub05d\uc810\uacfc \ubca1\ud130\uc758 \uc704\uce58 \uad00\uacc4\ub97c \ud1b5\ud574 \uc27d\uac8c \ud30c\uc545\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc704\uce58 \uad00\uacc4<\/h3>\n<p>\uc120\ubd84 A\uc758 \ub450 \uc810\uc744 \uc5f0\uacb0\ud558\ub294 \ubca1\ud130 <strong>AB<\/strong>\uc640 \uc120\ubd84 B\uc758 \ub450 \uc810\uc744 \uc5f0\uacb0\ud558\ub294 \ubca1\ud130 <strong>CD<\/strong>\uc758 \ubc29\ud5a5\uc744 \ud30c\uc545\ud574\uc57c \ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \uc774 \uc120\ubd84\ub4e4\uc774 \uc11c\ub85c \uad50\ucc28\ud560 \uacbd\uc6b0, \uac01 \uc810\uc740 \uc11c\ub85c \ub2e4\ub978 \ubc29\ud5a5\uc5d0 \uc704\uce58\ud558\uac8c \ub429\ub2c8\ub2e4.<\/p>\n<h3>\ubca1\ud130\uc758 \ud06c\ub85c\uc2a4 \ud504\ub85c\ub355\ud2b8<\/h3>\n<p>\ubca1\ud130\uc758 \ud06c\ub85c\uc2a4 \ud504\ub85c\ub355\ud2b8\ub97c \uc774\uc6a9\ud558\uc5ec \ub450 \ubca1\ud130\uc758 \ubc29\ud5a5\uc744 \ube44\uad50\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub450 \ubca1\ud130, \uc989 \uc120\ubd84\uc758 \ub450 \ubc29\ud5a5\uc744 \ub098\ud0c0\ub0b4\ub294 \ubca1\ud130\ub97c <strong>AB<\/strong>\uc640 <strong>AC<\/strong>\ub77c \ud560 \ub54c, \uc774\ub4e4\uc758 \ud06c\ub85c\uc2a4 \ud504\ub85c\ub355\ud2b8\ub97c \uacc4\uc0b0\ud568\uc73c\ub85c\uc368 \ub450 \uc120\ubd84\uc758 \uc704\uce58 \uad00\uacc4\ub97c \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>\uc218\ud559\uc801 \ud45c\ud604<\/h3>\n<p>\uc218\ud559\uc801\uc73c\ub85c \ubca1\ud130\uc758 \ud06c\ub85c\uc2a4 \ud504\ub85c\ub355\ud2b8\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \ud45c\ud604\ub429\ub2c8\ub2e4:<\/p>\n<pre>\n    AB x AC = (x2 - x1)*(y3 - y1) - (y2 - y1)*(x3 - x1)\n    <\/pre>\n<p>\uc774\uc640 \uac19\uc740 \ubc29\uc2dd\uc73c\ub85c, \uac01\uac01\uc758 \uc810\uc5d0 \ub300\ud574 \ud06c\ub85c\uc2a4 \ud504\ub85c\ub355\ud2b8\ub97c \uacc4\uc0b0\ud558\uc5ec, \uac01 \uc120\ubd84\uc758 \ubc29\ud5a5\uc744 \uacb0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub9cc\uc57d \uc591\uc218, \uc74c\uc218, \ub610\ub294 0\uc73c\ub85c \ub098\uc624\ub294 \uacbd\uc6b0\uc5d0 \ub530\ub77c \uc11c\ub85c \uad50\ucc28\ud558\uac70\ub098 \ud639\uc740 \ud3c9\ud589\ud558\uac8c \uc704\uce58\ud558\uac8c \ub418\ub294 \uc0c1\ud669\uc744 \ub098\ub204\uc5b4 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>C++ \ucf54\ub4dc \uad6c\ud604<\/h2>\n<p>\uc774\uc81c \uc704\uc5d0\uc11c \uc124\uba85\ud55c \uc774\ub860\uc744 \ubc14\ud0d5\uc73c\ub85c C++ \ucf54\ub4dc\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ucf54\ub4dc\uc5d0\uc11c\ub294 \uc120\ubd84\uc758 \uc704\uce58 \uad00\uacc4\ub97c \ud30c\uc545\ud558\uace0 \uad50\ucc28 \uc5ec\ubd80\ub97c \uccb4\ud06c\ud558\ub294 \ub85c\uc9c1\uc744 \ud3ec\ud568\ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>\n#include <iostream>\n\nusing namespace std;\n\nstruct Point {\n    int x, y;\n};\n\n\/\/ \ub450 \uc120\ubd84\uc774 \uad50\ucc28\ud558\ub294\uc9c0 \uc5ec\ubd80\ub97c \uccb4\ud06c\ud558\ub294 \ud568\uc218\nbool doIntersect(Point p1, Point p2, Point p3, Point p4) {\n    \/\/ \uc624\ub9ac\uc5d4\ud14c\uc774\uc158 \uacc4\uc0b0\n    auto orientation = [](Point a, Point b, Point c) {\n        int val = (b.y - a.y) * (c.x - b.x) - (b.x - a.x) * (c.y - b.y);\n        if (val == 0) return 0; \/\/ collinear\n        return (val &gt; 0) ? 1 : 2; \/\/ clock or counterclock wise\n    };\n\n    int o1 = orientation(p1, p2, p3);\n    int o2 = orientation(p1, p2, p4);\n    int o3 = orientation(p3, p4, p1);\n    int o4 = orientation(p3, p4, p2);\n\n    \/\/ \uc77c\ubc18\uc801\uc778 \uacbd\uc6b0\n    if (o1 != o2 &amp;&amp; o3 != o4)\n        return true;\n\n    \/\/ \ud2b9\ubcc4\ud55c \uacbd\uc6b0\n    \/\/ ...\n    return false;\n}\n\nint main() {\n    Point p1 = {1, 1}, p2 = {10, 1}, p3 = {1, 2}, p4 = {10, 2};\n    if (doIntersect(p1, p2, p3, p4)) {\n        cout &lt;&lt; \"\uc120\ubd84\uc774 \uad50\ucc28\ud569\ub2c8\ub2e4.\" &lt;&lt; endl;\n    } else {\n        cout &lt;&lt; \"\uc120\ubd84\uc774 \uad50\ucc28\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.\" &lt;&lt; endl;\n    }\n    return 0;\n}\n    <\/iostream><\/code><\/pre>\n<h3>\ucf54\ub4dc \ubd84\uc11d<\/h3>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c \uc6b0\ub9ac\ub294 \uba3c\uc800 \ub450 \uc810\uc744 \uad6c\uc870\uccb4(Point)\ub85c \uc815\uc758\ud558\uace0, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\uae30 \uc704\ud55c doIntersect \ud568\uc218\ub97c \uc791\uc131\ud588\uc2b5\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \uc8fc\uc5b4\uc9c4 \ub124 \uc810\uc5d0 \ub300\ud55c \uc624\ub9ac\uc5d4\ud14c\uc774\uc158\uc744 \uacc4\uc0b0\ud558\uace0, \uc774\ub97c \ud1b5\ud574 \uc120\ubd84\uc774 \uad50\ucc28\ud558\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud310\ub2e8\ud569\ub2c8\ub2e4. \uac01 \uc624\ub9ac\uc5d4\ud14c\uc774\uc158\uc758 \uc870\ud569\uc744 \ud1b5\ud574 \uc11c\ub85c \ub2e4\ub978 \uad50\ucc28 \uc870\uac74\uc744 \ud655\uc778\ud558\uace0, \ub9c8\uc9c0\ub9c9\uc5d0 \uacb0\uacfc\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h3>\ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4<\/h3>\n<p>\uc704 \ucf54\ub4dc\ub97c \ud14c\uc2a4\ud2b8\ud558\uae30 \uc704\ud574 \ub2e4\uc591\ud55c \ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uba87 \uac00\uc9c0 \uc608\ub97c \ub4e4\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>\n    \/\/ \uad50\ucc28 \ucf00\uc774\uc2a4\n    Point p1 = {0, 0}, p2 = {10, 10}, p3 = {0, 10}, p4 = {10, 0};\n    \/\/ \uad50\ucc28\ud558\uc9c0 \uc54a\ub294 \uacbd\uc6b0\n    Point p1 = {1, 1}, p2 = {10, 1}, p3 = {1, 2}, p4 = {10, 2};\n    <\/code><\/pre>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub97c \uc774\uc6a9\ud558\uc5ec \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub294 \uc54c\uace0\ub9ac\uc998\uc744 \uad6c\ud604\ud558\ub294 \uacfc\uc815\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uae30\ud558\ud559\uc801 \ubb38\uc81c\ub294 \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \uc694\uad6c\ub418\ub294 \uc8fc\uc81c \uc911 \ud558\ub098\uc774\ubbc0\ub85c, \uae30\ucd08\uc801\uc778 \uae30\ud558\ud559 \uac1c\ub150\uc744 \uc219\uc9c0\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ub2e4\uc591\ud55c \uc608\uc81c\uc640 \uc5f0\uc2b5\ubb38\uc81c\ub97c \ud1b5\ud574 \uc54c\uace0\ub9ac\uc998\uc744 \ub354\uc6b1 \uae4a\uc774 \uc774\ud574\ud560 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h2>\ucd94\uac00 \uc5f0\uc2b5 \ubb38\uc81c<\/h2>\n<p>\uc544\ub798\uc758 \ubb38\uc81c\ub97c \ud480\uc5b4\ubcf4\uba70 \uc5f0\uc2b5\ud574\ubcf4\uc138\uc694:<\/p>\n<ol>\n<li>\uad50\ucc28\ud558\ub294 \uacbd\uc6b0\uc640 \uad50\ucc28\ud558\uc9c0 \uc54a\ub294 \uacbd\uc6b0\ub97c \ud3ec\ud568\ud55c \uc5ec\ub7ec \ud14c\uc2a4\ud2b8 \ucf00\uc774\uc2a4 \uc791\uc131\ud558\uae30<\/li>\n<li>\uc120\ubd84\uc774 \uc811\ud558\ub294 \uacbd\uc6b0\ub97c \uace0\ub824\ud558\uc5ec \ucf54\ub4dc\ub97c \ud655\uc7a5\ud558\uae30<\/li>\n<li>3\ucc28\uc6d0 \uacf5\uac04\uc5d0\uc11c\uc758 \uc120\ubd84 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30<\/li>\n<\/ol>\n<p>\uc774\uc0c1\uc73c\ub85c C++ \ucf54\ub529 \ud14c\uc2a4\ud2b8 \uac15\uc88c\ub97c \ub9c8\uce58\uaca0\uc2b5\ub2c8\ub2e4. \uc55e\uc73c\ub85c\ub3c4 \ub2e4\uc591\ud55c \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uac10\uc0ac\ud569\ub2c8\ub2e4!<\/p>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694, \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub97c \ud65c\uc6a9\ud558\uc5ec \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \uae30\ud558\ud559\uc801 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, \uc5ec\ub7ec \uac00\uc9c0 \uc751\uc6a9\uc774 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38\uc5d0 \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub429\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \ub450 \uac1c\uc758 \uc120\ubd84\uc774 \uad50\ucc28\ud558\ub294\uc9c0 \ud310\ub2e8\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc120\ubd84 A\ub294 \ub450 \uc810 P1(x1, y1)\uc640 P2(x2, y2)\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uace0, \uc120\ubd84 B\ub294 \ub450 \uc810 P3(x3, y3)\uc640 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/27643\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[25],"tags":[],"class_list":["post-27643","post","type-post","status-publish","format-standard","hentry","category-c---2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/27643\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694, \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub97c \ud65c\uc6a9\ud558\uc5ec \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \uae30\ud558\ud559\uc801 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, \uc5ec\ub7ec \uac00\uc9c0 \uc751\uc6a9\uc774 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38\uc5d0 \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub429\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \ub450 \uac1c\uc758 \uc120\ubd84\uc774 \uad50\ucc28\ud558\ub294\uc9c0 \ud310\ub2e8\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc120\ubd84 A\ub294 \ub450 \uc810 P1(x1, y1)\uc640 P2(x2, y2)\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uace0, \uc120\ubd84 B\ub294 \ub450 \uc810 P3(x3, y3)\uc640 &hellip; \ub354 \ubcf4\uae30 &quot;C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/27643\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-10-27T14:42:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T07:16:31+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/27643\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27643\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30\",\"datePublished\":\"2024-10-27T14:42:40+00:00\",\"dateModified\":\"2024-11-26T07:16:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27643\/\"},\"wordCount\":56,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/27643\/\",\"url\":\"https:\/\/atmokpo.com\/w\/27643\/\",\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-10-27T14:42:40+00:00\",\"dateModified\":\"2024-11-26T07:16:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/27643\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/27643\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/27643\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/27643\/","og_locale":"ko_KR","og_type":"article","og_title":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694, \ucf54\ub529\ud14c\uc2a4\ud2b8\ub97c \uc900\ube44\ud558\ub294 \uc5ec\ub7ec\ubd84! \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 C++\ub97c \ud65c\uc6a9\ud558\uc5ec \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80\ub97c \uad6c\ud558\ub294 \ubb38\uc81c\ub97c \ub2e4\ub8e8\uc5b4 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc81c\ub294 \uae30\ud558\ud559\uc801 \uc54c\uace0\ub9ac\uc998 \ubb38\uc81c \uc911 \ud558\ub098\ub85c, \uc5ec\ub7ec \uac00\uc9c0 \uc751\uc6a9\uc774 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38\uc5d0 \ucf54\ub529\ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc790\uc8fc \ucd9c\uc81c\ub429\ub2c8\ub2e4. \ubb38\uc81c \uc124\uba85 \uc8fc\uc5b4\uc9c4 \ub450 \uac1c\uc758 \uc120\ubd84\uc774 \uad50\ucc28\ud558\ub294\uc9c0 \ud310\ub2e8\ud558\ub294 \ubb38\uc81c\uc785\ub2c8\ub2e4. \uc120\ubd84 A\ub294 \ub450 \uc810 P1(x1, y1)\uc640 P2(x2, y2)\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\uace0, \uc120\ubd84 B\ub294 \ub450 \uc810 P3(x3, y3)\uc640 &hellip; \ub354 \ubcf4\uae30 \"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/27643\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-10-27T14:42:40+00:00","article_modified_time":"2024-11-26T07:16:31+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/27643\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/27643\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30","datePublished":"2024-10-27T14:42:40+00:00","dateModified":"2024-11-26T07:16:31+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/27643\/"},"wordCount":56,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/27643\/","url":"https:\/\/atmokpo.com\/w\/27643\/","name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-10-27T14:42:40+00:00","dateModified":"2024-11-26T07:16:31+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/27643\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/27643\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/27643\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"C++ \ucf54\ub529\ud14c\uc2a4\ud2b8 \uac15\uc88c, \uc120\ubd84\uc758 \uad50\ucc28 \uc5ec\ubd80 \uad6c\ud558\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=27643"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27643\/revisions"}],"predecessor-version":[{"id":27644,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/27643\/revisions\/27644"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=27643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=27643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=27643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}