{"id":2804,"date":"2020-01-14T19:34:13","date_gmt":"2020-01-14T19:34:13","guid":{"rendered":"http:\/\/wordpress.creativegigs.net\/docly\/docs\/rogan-wordpress-theme-documentation\/blocks\/notice\/"},"modified":"2024-04-07T01:19:16","modified_gmt":"2024-04-07T01:19:16","slug":"first-project-in-cpp","status":"publish","type":"docs","link":"https:\/\/adelnasim.com\/ar\/docs\/courses\/cpp-tutorial\/first-project-in-cpp\/","title":{"rendered":"\u0623\u0648\u0644 \u0628\u0631\u0646\u0627\u0645\u062c \u0641\u064a \u0644\u063a\u0629 C++"},"content":{"rendered":"<div class=\"logo-gutter ng-tns-c2993528733-16 ng-star-inserted\"><\/div>\n<div class=\"response-container-content ng-tns-c2993528733-16\">\n<div class=\"response-content ng-trigger ng-trigger-responsePopulation ng-tns-c2993528733-16\">\n<div class=\"markdown markdown-main-panel\" dir=\"ltr\">\n<p>&nbsp;<\/p>\n<p data-sourcepos=\"19:1-19:12\"><strong>\u0645\u062b\u0627\u0644:<\/strong><\/p>\n<p data-sourcepos=\"21:1-21:79\">C++<\/p>\n<p data-sourcepos=\"21:1-21:79\">\n<div class=\"wp-block-codemirror-blocks code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">#include &lt;iostream&gt;\r\nint main()\r\n{ \r\n    std::cout &lt;&lt; \"Welcome to C++\";\r\n    return 0;\r\n}<\/pre>\n<\/div>\n<p data-sourcepos=\"21:1-21:79\">\n<div class=\"code-block ng-star-inserted\">\n<pre><code class=\"code-container\" role=\"text\">\r\n<\/code><\/pre>\n<div class=\"code-block-decoration footer gmat-overline hide-from-message-actions ng-star-inserted\">\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<p data-sourcepos=\"1:1-1:102\">\u0647\u0646\u0627 \u064a\u0638\u0647\u0631 \u0644\u0643 \u0628\u0631\u0646\u0627\u0645\u062c \u0628\u0633\u064a\u0637 \u0628\u0625\u0633\u062a\u062e\u062f\u0627\u0645 \u0644\u063a\u0629 C++ \u062d\u064a\u062b \u064a\u0642\u0648\u0645 \u0628\u0637\u0628\u0627\u0639\u0629 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \"Welcome to C++\" \u0625\u0644\u0649 \u0634\u0627\u0634\u0629 \u0627\u0644\u0646\u062a\u0627\u0626\u062c.<\/p>\n<ul data-sourcepos=\"3:1-7:0\">\n<li data-sourcepos=\"3:1-3:175\"><strong>#include &lt;iostream&gt;:<\/strong>\u00a0\u0641\u064a \u0647\u0630\u0627 \u0627\u0644\u0633\u0637\u0631 \u0646\u0642\u0648\u0645 \u0628\u0625\u062e\u0628\u0627\u0631 \u0627\u0644\u0645\u062a\u0631\u062c\u0645 Compiler \u0628\u062a\u0636\u0645\u064a\u0646 \u0645\u0644\u0641 \u0627\u0644\u0640header\u00a0<code>iostream<\/code>\u0625\u0630 \u064a\u062d\u062a\u0648\u064a \u0647\u0630\u0627 \u0627\u0644\u0645\u0644\u0641 \u0639\u0644\u0649 \u0625\u0639\u0644\u0627\u0646 \u0644\u0644\u0645\u0639\u0627\u064a\u064a\u0631 \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u0644\u0645\u0643\u062a\u0628\u0629 \u0627\u0644\u0625\u062f\u0627\u062e\u0627\u0644 \u0648\u0627\u0644\u0625\u062e\u0631\u0627\u062c.<\/li>\n<li data-sourcepos=\"4:1-4:113\"><strong>int main():<\/strong>\u00a0\u064a\u062d\u062f\u062f \u0647\u0630\u0627 \u0627\u0644\u062e\u0637 \u0627\u0644\u0648\u0638\u064a\u0641\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629. \u0627\u0644\u0648\u0638\u064a\u0641\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629 \u0647\u064a \u0646\u0642\u0637\u0629 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u062c\u0645\u064a\u0639 \u0628\u0631\u0627\u0645\u062c C++.<\/li>\n<li data-sourcepos=\"5:1-5:134\"><strong>std::cout &lt;&lt; &#8220;Welcome to C++&#8221;;:<\/strong>\u00a0\u064a\u0637\u0628\u0639 \u0647\u0630\u0627 \u0627\u0644\u0633\u0637\u0631 \u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u201cWelcome to C++\u201d \u0639\u0644\u0649 \u0648\u062d\u062f\u0629 \u0627\u0644\u062a\u062d\u0643\u0645 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0645\u0644\u0641\u00a0<code>std::cout<\/code>\u00a0object.<\/li>\n<li data-sourcepos=\"6:1-7:0\"><strong>return 0;:<\/strong>\u00a0\u064a\u064f\u0631\u062c\u0639 \u0647\u0630\u0627 \u0627\u0644\u0633\u0637\u0631 \u0627\u0644\u0642\u064a\u0645\u0629 0 \u0645\u0646 \u0627\u0644\u062f\u0627\u0644\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629 main. \u064a\u0634\u064a\u0631 \u0647\u0630\u0627 \u0625\u0644\u0649 \u0623\u0646\u0647 \u062a\u0645 \u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0628\u0646\u062c\u0627\u062d.<\/li>\n<\/ul>\n<p data-sourcepos=\"8:1-8:91\">\u0639\u0646\u062f\u0645\u0627 \u062a\u0642\u0648\u0645 \u0628\u0628\u0631\u0645\u062c\u0629 \u0647\u0630\u0627 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0648\u062a\u0634\u063a\u064a\u0644\u0647\u060c \u0633\u062a\u062a\u0645 \u0637\u0628\u0627\u0639\u0629 \u0627\u0644\u0646\u0627\u062a\u062c \u0627\u0644\u062a\u0627\u0644\u064a \u0639\u0644\u0649 \u0648\u062d\u062f\u0629 \u0627\u0644\u062a\u062d\u0643\u0645:<\/p>\n<div class=\"code-block ng-star-inserted\">\n<pre><code class=\"code-container no-decoration-radius\" role=\"text\">Welcome to C++\r\n<\/code><\/pre>\n<\/div>\n<p data-sourcepos=\"14:1-14:161\">\u0647\u0630\u0627 \u0645\u062b\u0627\u0644 \u0628\u0633\u064a\u0637 \u062c\u062f\u064b\u0627 \u0644\u0628\u0631\u0646\u0627\u0645\u062c C++\u060c \u0648\u0644\u0643\u0646\u0647 \u064a\u0648\u0636\u062d \u0628\u0639\u0636 \u0627\u0644\u0645\u0641\u0627\u0647\u064a\u0645 \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629 \u0644\u0644\u063a\u0629\u060c \u0645\u062b\u0644 \u0645\u0644\u0641\u0627\u062a \u0627\u0644\u0640header \u0648\u0627\u0644\u0648\u0638\u0627\u0626\u0641 \u0648\u0627\u0644\u0625\u062f\u062e\u0627\u0644\/\u0627\u0644\u0625\u062e\u0631\u0627\u062c.<\/p>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>&nbsp; Example: C++ #include &lt;iostream&gt; int main() { std::cout &lt;&lt; &#8220;Welcome to C++&#8221;; return 0; } &nbsp; This is a simple C++ program that prints the message &#8220;Welcome to C++&#8221; to the console. #include &lt;iostream&gt;:\u00a0This line tells the compiler to include the header file\u00a0iostream. This header file contains declarations for the standard input\/output library. int [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"parent":2744,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-2804","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/2804","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/comments?post=2804"}],"version-history":[{"count":9,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/2804\/revisions"}],"predecessor-version":[{"id":9776,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/docs\/2804\/revisions\/9776"}],"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=2804"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/adelnasim.com\/ar\/wp-json\/wp\/v2\/doc_tag?post=2804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}