<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>大樂透程式開發流程 by 20502江沐優</title>
      <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z</link>
      <description>111(2) 高二C班課程</description>
      <language>en-us</language>
      <pubDate>2023-03-23 01:48:11 UTC</pubDate>
      <lastBuildDate>2025-11-06 20:09:54 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f407.png</url>
      </image>
      <item>
         <title></title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2537574545</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cstdlib&gt;<br>#include &lt;ctime&gt;<br>using namespace std;<br><br>int main() {<br>&nbsp; &nbsp; int arr[6]; // 存放六個偶數的陣列<br>&nbsp; &nbsp; int count = 0; // 目前已取得的偶數數量<br>&nbsp; &nbsp; srand(time(NULL)); // 設定亂數種子<br>&nbsp; &nbsp; while (count &lt; 6) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int num = rand() % 100 + 1; // 隨機產生一個 1-100 的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; if (num % 2 == 0) { // 判斷是否為偶數<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[count] = num; // 將偶數存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++; // 偶數數量加一<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}<br><br></div>]]></description>
         <enclosure url="https://onlinegdb.com/cpOUEKSFv" />
         <pubDate>2023-03-30 01:38:36 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2537574545</guid>
      </item>
      <item>
         <title></title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2537575637</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cstdlib&gt;<br>#include &lt;ctime&gt;<br>#include &lt;algorithm&gt;<br>using namespace std;<br><br>int main() {<br>&nbsp; &nbsp; int arr[6]; // 存放六個偶數的陣列<br>&nbsp; &nbsp; int count = 0; // 目前已取得的偶數數量<br>&nbsp; &nbsp; srand(time(NULL)); // 設定亂數種子<br>&nbsp; &nbsp; while (count &lt; 6) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int num = rand() % 49 + 1; // 隨機產生一個 1-49 的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; if (num % 2 == 0) { // 判斷是否為偶數<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[count] = num; // 將偶數存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++; // 偶數數量加一<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序前";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 排序 arr 陣列，需指定排序的起始與結束範圍<br>&nbsp; &nbsp; sort(arr, arr + 6);<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序後";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}<br><br><br><br><br></div>]]></description>
         <enclosure url="https://onlinegdb.com/u4M_2ZkE6" />
         <pubDate>2023-03-30 01:39:23 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2537575637</guid>
      </item>
      <item>
         <title>將亂數排序 (Sort)</title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2537590937</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-03-30 01:52:15 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2537590937</guid>
      </item>
      <item>
         <title></title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569564716</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cstdlib&gt;<br>#include &lt;ctime&gt;<br>#include &lt;algorithm&gt;<br>using namespace std;<br><br>bool isDuplicate(int arr[], int num, int count) {<br>&nbsp; &nbsp; for (int i = 0; i &lt; count; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; if (arr[i] == num) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true; // 找到重複的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return false; // 沒有找到重複的數字<br>}<br><br>int main() {<br>&nbsp; &nbsp; int arr[6]; // 存放六個偶數的陣列<br>&nbsp; &nbsp; int count = 0; // 目前已取得的偶數數量<br>&nbsp; &nbsp; srand(time(NULL)); // 設定亂數種子<br>&nbsp; &nbsp; while (count &lt; 6) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int num = rand() % 49 + 1; // 隨機產生一個 1-49 的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; if (!isDuplicate(arr, num, count)) { // 如果這個數字不重複，就存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[count] = num; // 將偶數存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++; // 偶數數量加一<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序前";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 排序 arr 陣列，需指定排序的起始與結束範圍<br>&nbsp; &nbsp; sort(arr, arr + 6);<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序後";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="https://onlinegdb.com/9RvjGOwAc" />
         <pubDate>2023-04-27 01:19:03 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569564716</guid>
      </item>
      <item>
         <title></title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569571443</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cstdlib&gt;<br>#include &lt;ctime&gt;<br>#include &lt;algorithm&gt;<br>using namespace std;<br><br>bool isDuplicate(int arr[], int num, int count) {<br>&nbsp; &nbsp; for (int i = 0; i &lt; count; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; if (arr[i] == num) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true; // 找到重複的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return false; // 沒有找到重複的數字<br>}<br><br>int main() {<br>&nbsp; &nbsp; int arr[6]; // 存放六個偶數的陣列<br>&nbsp; &nbsp; int count = 0; // 目前已取得的偶數數量<br>&nbsp; &nbsp; srand(time(NULL)); // 設定亂數種子<br>&nbsp; &nbsp; while (count &lt; 6) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int num = rand() % 49 + 1; // 隨機產生一個 1-49 的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; if (!isDuplicate(arr, num, count)) { // 如果這個數字不重複，就存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[count] = num; // 將偶數存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++; // 偶數數量加一<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序前";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 排序 arr 陣列，需指定排序的起始與結束範圍<br>&nbsp; &nbsp; sort(arr, arr + 6);<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序後";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="https://onlinegdb.com/pnL_m7wwl" />
         <pubDate>2023-04-27 01:23:49 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569571443</guid>
      </item>
      <item>
         <title></title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569578817</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cstdlib&gt;<br>#include &lt;ctime&gt;<br>#include &lt;algorithm&gt;<br>using namespace std;<br><br>bool isDuplicate(int arr[], int num, int count) {<br>&nbsp; &nbsp; for (int i = 0; i &lt; count; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; if (arr[i] == num) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true; // 找到重複的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return false; // 沒有找到重複的數字<br>}<br><br>int main() {<br>&nbsp; &nbsp; int arr[6]; // 存放六個偶數的陣列<br>&nbsp; &nbsp; int count = 0; // 目前已取得的偶數數量<br>&nbsp; &nbsp; srand(time(NULL)); // 設定亂數種子<br>&nbsp; &nbsp; while (count &lt; 6) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int num = rand() % 49 + 1; // 隨機產生一個 1-49 的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; if (!isDuplicate(arr, num, count)) { // 如果這個數字不重複，就存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[count] = num; // 將偶數存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++; // 偶數數量加一<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序前";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 排序 arr 陣列，需指定排序的起始與結束範圍<br>&nbsp; &nbsp; sort(arr, arr + 6);<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序後";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}<br><br></div>]]></description>
         <enclosure url="https://onlinegdb.com/hNNZzQg-P" />
         <pubDate>2023-04-27 01:29:00 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569578817</guid>
      </item>
      <item>
         <title></title>
         <author>s11035133</author>
         <link>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569579704</link>
         <description><![CDATA[<div>#include &lt;iostream&gt;<br>#include &lt;cstdlib&gt;<br>#include &lt;ctime&gt;<br>#include &lt;algorithm&gt;<br>using namespace std;<br><br>bool isDuplicate(int arr[], int num, int count) {<br>&nbsp; &nbsp; for (int i = 0; i &lt; count; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; if (arr[i] == num) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true; // 找到重複的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return false; // 沒有找到重複的數字<br>}<br><br>int main() {<br>&nbsp; &nbsp; int arr[6]; // 存放六個偶數的陣列<br>&nbsp; &nbsp; int count = 0; // 目前已取得的偶數數量<br>&nbsp; &nbsp; srand(time(NULL)); // 設定亂數種子<br>&nbsp; &nbsp; while (count &lt; 6) {<br>&nbsp; &nbsp; &nbsp; &nbsp; int num = rand() % 49 + 1; // 隨機產生一個 1-49 的數字<br>&nbsp; &nbsp; &nbsp; &nbsp; if (!isDuplicate(arr, num, count)) { // 如果這個數字不重複，就存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[count] = num; // 將偶數存放進陣列中<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; count++; // 偶數數量加一<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序前";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; cout &lt;&lt; endl;<br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; // 排序 arr 陣列，需指定排序的起始與結束範圍<br>&nbsp; &nbsp; sort(arr, arr + 6);<br>&nbsp;&nbsp;<br>&nbsp; &nbsp; // 列印出陣列中的偶數<br>&nbsp; &nbsp; cout &lt;&lt; "排序後";<br>&nbsp; &nbsp; for (int i = 0; i &lt; 6; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; cout &lt;&lt; arr[i] &lt;&lt; " ";<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; return 0;<br>}</div>]]></description>
         <enclosure url="https://onlinegdb.com/Ym5U11po1" />
         <pubDate>2023-04-27 01:29:34 UTC</pubDate>
         <guid>https://padlet.com/s11035133/dtxw5sfs4k3w6x4z/wish/2569579704</guid>
      </item>
   </channel>
</rss>
