{"id":9820,"date":"2023-10-03T14:32:07","date_gmt":"2023-10-03T14:32:07","guid":{"rendered":"https:\/\/adelnasim.com\/docs\/courses\/cpp-tutorial\/selection-statement\/"},"modified":"2024-04-07T01:19:20","modified_gmt":"2024-04-07T01:19:20","slug":"selection-statements","status":"publish","type":"docs","link":"https:\/\/adelnasim.com\/ar\/docs\/courses\/cpp-tutorial\/selection-statements\/","title":{"rendered":"\u0627\u0644\u062c\u0645\u0644 \u0627\u0644\u0634\u0631\u0637\u064a\u0651\u0629 - \u062c\u0645\u0644\u0629 if \u0627\u0644\u0634\u0631\u0637\u064a\u0651\u0629"},"content":{"rendered":"<p data-sourcepos=\"1:1-1:152\">\u062a\u064f\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u062c\u0645\u0644 \u0627\u0644\u0634\u0631\u0637\u064a\u0651\u0629 \u0641\u064a \u0644\u063a\u0629 C++ \u0644\u0644\u062a\u062d\u0643\u0645 \u0641\u064a \u062a\u062f\u0641\u0642 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c. \u0625\u0646\u0647\u0627 \u062a\u0633\u0645\u062d \u0644\u0643 \u0628\u062a\u0646\u0641\u064a\u0630 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0645\u062e\u062a\u0644\u0641\u0629 \u0645\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0628\u0646\u0627\u0621\u064b \u0639\u0644\u0649 \u0634\u0631\u0648\u0637 \u0645\u062e\u062a\u0644\u0641\u0629.<\/p>\n<p data-sourcepos=\"3:1-3:45\">\u0647\u0646\u0627\u0643 \u0646\u0648\u0639\u0627\u0646 \u0631\u0626\u064a\u0633\u064a\u0627\u0646 \u0644\u0644\u062c\u0645\u0644 \u0627\u0644\u0634\u0637\u0631\u064a\u0651\u0629 \u0641\u064a \u0644\u063a\u0629 C++ \u0647\u0645\u0627:<\/p>\n<ul data-sourcepos=\"5:1-7:0\">\n<li data-sourcepos=\"5:1-5:100\"><strong>\u062c\u0645\u0644\u0629 if \u0627\u0644\u0634\u0631\u0637\u064a\u0651\u0629:<\/strong>\u00a0\u0627\u0644\u0640\u00a0<code>if<\/code>\u00a0\u062a\u0633\u0645\u062d \u0628\u062a\u0646\u0641\u064a\u0630 \u0645\u062c\u0645\u0648\u0639\u0629 \u0645\u0646 \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0634\u0631\u0637 \u0635\u062d\u064a\u062d\u064b\u0627.<\/li>\n<li data-sourcepos=\"6:1-7:0\"><strong>\u062c\u0645\u0644\u0629 switch:<\/strong>\u00a0\u0627\u0644\u0640\u00a0<code>switch<\/code>\u00a0\u062a\u0633\u0645\u062d \u0628\u062a\u062d\u062f\u064a\u062f \u0648\u0627\u062d\u062f\u0629 \u0645\u0646 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0627\u0644\u062a\u0639\u0644\u064a\u0645\u0627\u062a \u0627\u0644\u0628\u0631\u0645\u062c\u064a\u0629 \u0627\u0644\u0645\u062a\u0639\u062f\u062f\u0629 \u0644\u062a\u0646\u0641\u064a\u0630\u0647\u0627 \u0628\u0646\u0627\u0621\u064b \u0639\u0644\u0649 \u0642\u064a\u0645\u0629 \u0627\u0644\u062a\u0639\u0628\u064a\u0631.<\/li>\n<\/ul>\n<p>\u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0642\u0633\u0645 \u0633\u0648\u0641 \u0646\u0639\u0631\u0641 \u0627\u0644\u0645\u0632\u064a\u062f \u0639\u0646 \u062c\u0645\u0644\u0629 if \u0627\u0644\u0634\u0631\u0637\u064a\u0651\u0629.<\/p>","protected":false},"excerpt":{"rendered":"<p>Selection statements in C++ are used to control the flow of a program. They allow you to execute different blocks of code based on different conditions. The two main selection statements in C++ are: if statement:\u00a0The\u00a0if\u00a0statement allows you to execute a block of code if a condition is true. switch statement:\u00a0The\u00a0switch\u00a0statement allows you to select [&hellip;]<\/p>","protected":false},"author":3,"featured_media":0,"parent":2744,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-9820","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/9820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/comments?post=9820"}],"version-history":[{"count":6,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/9820\/revisions"}],"predecessor-version":[{"id":9851,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/9820\/revisions\/9851"}],"up":[{"embeddable":true,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/2744"}],"wp:attachment":[{"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/media?parent=9820"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/doc_tag?post=9820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}