<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>immortalnova</author_name>
  <author_url>https://blog.hatena.ne.jp/immortalnova/</author_url>
  <blog_title>Nova的科學反主流學院　</blog_title>
  <blog_url>https://selfinquiring.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>程式</anon>
  </categories>
  <description>此篇章節包含 1.程式碼範例 2.程式執行結果 3.程式說明 程式設計概念-設計變數(存放資料的箱子) 程式設計概念-設計註解 以下開始正文： 1.程式碼範例 #include &lt;iostream&gt; int main(int argc, char** argv) { int n = 1; // 存放1加到多少的變數 int sum = 0; // 存放目前累加的總數 std::cout &lt;&lt; &quot;你希望從1加到幾?&quot;; std::cin &gt;&gt; n; // 讀取使用者輸入的數字 std::cout &lt;&lt; &quot;從1加到&quot; &lt;&lt; n &lt;&lt; &quot;的結果是:\n&quot;; for(int i = 0;i &lt;= n;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fselfinquiring.hatenablog.com%2Fentry%2F2016%2F03%2F23%2F211921&quot; title=&quot;C++程式範例-從1加到N是多少？上篇(怎麼存放資料-宣告變數/讓人看得更清楚-註解) - Nova的科學反主流學院　&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://i.imgur.com/1knPR3G.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-23 21:19:21</published>
  <title>C++程式範例-從1加到N是多少？上篇(怎麼存放資料-宣告變數/讓人看得更清楚-註解)</title>
  <type>rich</type>
  <url>https://selfinquiring.hatenablog.com/entry/2016/03/23/211921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
