{"id":14478,"date":"2025-04-16T12:33:32","date_gmt":"2025-04-16T05:33:32","guid":{"rendered":"https:\/\/www.krujeen.com\/?p=14478"},"modified":"2025-04-16T21:57:59","modified_gmt":"2025-04-16T14:57:59","slug":"%e0%b8%aa%e0%b8%a3%e0%b8%b8%e0%b8%9b%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87%e0%b8%9e%e0%b8%b7%e0%b9%89%e0%b8%99%e0%b8%90%e0%b8%b2%e0%b8%99%e0%b8%82%e0%b8%ad%e0%b8%87%e0%b8%a0%e0%b8%b2","status":"publish","type":"post","link":"https:\/\/www.krujeen.com\/?p=14478","title":{"rendered":"\u0e2a\u0e23\u0e38\u0e1b\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e10\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e20\u0e32\u0e29\u0e32 C++"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.krujeen.com\/wp-content\/uploads\/2025\/04\/ChatGPT-Image-Apr-16-2025-12_39_42-PM.png\" alt=\"\" class=\"wp-image-14487\" srcset=\"https:\/\/www.krujeen.com\/wp-content\/uploads\/2025\/04\/ChatGPT-Image-Apr-16-2025-12_39_42-PM.png 1024w, https:\/\/www.krujeen.com\/wp-content\/uploads\/2025\/04\/ChatGPT-Image-Apr-16-2025-12_39_42-PM-300x300.png 300w, https:\/\/www.krujeen.com\/wp-content\/uploads\/2025\/04\/ChatGPT-Image-Apr-16-2025-12_39_42-PM-150x150.png 150w, https:\/\/www.krujeen.com\/wp-content\/uploads\/2025\/04\/ChatGPT-Image-Apr-16-2025-12_39_42-PM-768x768.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. \u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e10\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21<\/strong><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">#include &lt;iostream&gt;\nusing namespace std;\n\nint main() {\n    \/\/ \u0e42\u0e04\u0e49\u0e14\u0e2b\u0e25\u0e31\u0e01\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\n    return 0;\n}<\/code><\/pre>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Input\/Output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">\n\/\/ Output\ncout &lt;&lt; \"Hello, World!\" &lt;&lt; endl;\n\n\/\/ Input\nint number;\ncin &gt;&gt; number;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e41\u0e25\u0e30\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">int integerVar = 10;\nfloat floatVar = 3.14f;\ndouble doubleVar = 3.14159;\nchar charVar = 'A';\nbool boolVar = true;\nstring stringVar = \"Hello\";<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Operators<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">\/\/ Arithmetic operators\nint a = 5 + 3;  \/\/ \u0e1a\u0e27\u0e01\nint b = 5 - 3;  \/\/ \u0e25\u0e1a\nint c = 5 * 3;  \/\/ \u0e04\u0e39\u0e13\nint d = 5 \/ 3;  \/\/ \u0e2b\u0e32\u0e23\nint e = 5 % 3;  \/\/ \u0e2b\u0e32\u0e23\u0e40\u0e2d\u0e32\u0e40\u0e28\u0e29\n\n\/\/ Comparison operators\nbool f = (a == b);  \/\/ \u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a\nbool g = (a != b);  \/\/ \u0e44\u0e21\u0e48\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a\nbool h = (a &gt; b);   \/\/ \u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\nbool i = (a &lt; b);   \/\/ \u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32\nbool j = (a &gt;= b);  \/\/ \u0e21\u0e32\u0e01\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a\nbool k = (a &lt;= b);  \/\/ \u0e19\u0e49\u0e2d\u0e22\u0e01\u0e27\u0e48\u0e32\u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a\n\n\/\/ Logical operators\nbool l = (true &amp;&amp; false);  \/\/ \u0e41\u0e25\u0e30\nbool m = (true || false);  \/\/ \u0e2b\u0e23\u0e37\u0e2d\nbool n = !true;            \/\/ \u0e44\u0e21\u0e48\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Control Structures<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">\/\/ if-else\nif (condition) {\n    \/\/ \u0e17\u0e33\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\n} else {\n    \/\/ \u0e17\u0e33\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e17\u0e47\u0e08\n}\n\n\/\/ switch\nswitch (variable) {\n    case value1:\n        \/\/ \u0e17\u0e33\u0e40\u0e21\u0e37\u0e48\u0e2d variable \u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a value1\n        break;\n    case value2:\n        \/\/ \u0e17\u0e33\u0e40\u0e21\u0e37\u0e48\u0e2d variable \u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e1a value2\n        break;\n    default:\n        \/\/ \u0e17\u0e33\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e44\u0e21\u0e48\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a case \u0e43\u0e14\u0e40\u0e25\u0e22\n}\n\n\/\/ for loop\nfor (int i = 0; i &lt; 5; i++) {\n    \/\/ \u0e17\u0e33\u0e0b\u0e49\u0e33 5 \u0e04\u0e23\u0e31\u0e49\u0e07\n}\n\n\/\/ while loop\nwhile (condition) {\n    \/\/ \u0e17\u0e33\u0e0b\u0e49\u0e33\u0e15\u0e23\u0e32\u0e1a\u0e40\u0e17\u0e48\u0e32\u0e17\u0e35\u0e48\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\n}\n\n\/\/ do-while loop\ndo {\n    \/\/ \u0e17\u0e33\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e49\u0e2d\u0e22 1 \u0e04\u0e23\u0e31\u0e49\u0e07 \u0e41\u0e25\u0e49\u0e27\u0e17\u0e33\u0e0b\u0e49\u0e33\u0e15\u0e23\u0e32\u0e1a\u0e40\u0e17\u0e48\u0e32\u0e17\u0e35\u0e48\u0e40\u0e07\u0e37\u0e48\u0e2d\u0e19\u0e44\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e08\u0e23\u0e34\u0e07\n} while (condition);\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>6. Functions<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">\/\/ \u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\nreturnType functionName(parameterType parameter) {\n    \/\/ \u0e42\u0e04\u0e49\u0e14\u0e02\u0e2d\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\n    return value;\n}\n\n\/\/ \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\nint add(int a, int b) {\n    return a + b;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>7. Arrays<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">\/\/ \u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 array\nint numbers[5] = {1, 2, 3, 4, 5};\n\n\/\/ \u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e2a\u0e21\u0e32\u0e0a\u0e34\u0e01\u0e02\u0e2d\u0e07 array\nint firstNumber = numbers[0];<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>8. Pointers<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">int x = 5;\nint* ptr = &amp;x;  \/\/ ptr \u0e40\u0e01\u0e47\u0e1a\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e02\u0e2d\u0e07 x\ncout &lt;&lt; *ptr;   \/\/ \u0e41\u0e2a\u0e14\u0e07\u0e04\u0e48\u0e32\u0e17\u0e35\u0e48 ptr \u0e0a\u0e35\u0e49\u0e44\u0e1b<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>9. References<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">int x = 5;\nint&amp; ref = x;  \/\/ ref \u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07\u0e16\u0e36\u0e07 x\nref = 10;      \/\/ \u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 x \u0e1c\u0e48\u0e32\u0e19 ref<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>10. Classes and Objects<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"cpp\" class=\"language-cpp line-numbers\">class MyClass {\npublic:\n    int myField;\n    void myMethod() {\n        \/\/ \u0e42\u0e04\u0e49\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e21\u0e18\u0e2d\u0e14\n    }\n};\n\nMyClass obj;  \/\/ \u0e2a\u0e23\u0e49\u0e32\u0e07 object\nobj.myField = 5;  \/\/ \u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e1f\u0e34\u0e25\u0e14\u0e4c\nobj.myMethod();   \/\/ \u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e40\u0e21\u0e18\u0e2d\u0e14<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-default\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0e2b\u0e21\u0e32\u0e22\u0e40\u0e2b\u0e15\u0e38:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e43\u0e0a\u0e49 <code>\/\/<\/code> \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a comment \u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e40\u0e14\u0e35\u0e22\u0e27 \u0e41\u0e25\u0e30 <code>\/* *\/<\/code> \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a comment \u0e2b\u0e25\u0e32\u0e22\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14<\/li>\n\n\n\n<li>\u0e43\u0e0a\u0e49 semicolon (;) \u0e1b\u0e34\u0e14\u0e17\u0e49\u0e32\u0e22\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e04\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/li>\n\n\n\n<li>\u0e0a\u0e37\u0e48\u0e2d\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e04\u0e27\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e2b\u0e21\u0e32\u0e22\u0e41\u0e25\u0e30\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e15\u0e32\u0e21 naming conventions<\/li>\n\n\n\n<li>\u0e23\u0e30\u0e27\u0e31\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07 case sensitivity \u0e43\u0e19 C++<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. \u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e10\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 2. Input\/Output 3. \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14487,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[155,156],"tags":[160],"class_list":["post-14478","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programing","category-c_language","tag-c"],"_links":{"self":[{"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/posts\/14478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14478"}],"version-history":[{"count":32,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/posts\/14478\/revisions"}],"predecessor-version":[{"id":14524,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/posts\/14478\/revisions\/14524"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=\/wp\/v2\/media\/14487"}],"wp:attachment":[{"href":"https:\/\/www.krujeen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.krujeen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}