討論串[問題] 迴圈
共 7 篇文章
首頁
上一頁
1
2
下一頁
尾頁

推噓1(1推 0噓 4→)留言5則,0人參與, 最新作者HolyBugTw (HolyBug)時間9年前 (2015/12/16 07:37), 編輯資訊
0
0
0
內容預覽:
寫個可能有bug的多階層適用:. #include <stdio.h>. #define LAYERS 3. int main(void) {. int mod=LAYERS-1;. int total=LAYERS*LAYERS;. int i, j;. printf(" ");. for (i=
(還有112個字)

推噓4(4推 0噓 1→)留言5則,0人參與, 最新作者dritchie (Dennis MjY3OTk5)時間9年前 (2015/12/15 13:59), 編輯資訊
0
0
0
內容預覽:
#include<iostream>. #include<string>. using namespace std;. template<int N>string Space(){return " "+Space<N-1>();}. template<>string Space<0>(){retur
(還有196個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者djljing (娛樂金魚眼)時間9年前 (2015/12/15 11:57), 編輯資訊
0
0
0
內容預覽:
自己寫出來了,只能說magic704266是高手. #include<stdio.h>. #include<stdlib.h>. int main(void). {. int i,j,k;. for(i=1;i<=3;i++). {. for(k=3;k>=i;k--). printf(" ");.
(還有50個字)

推噓0(0推 0噓 3→)留言3則,0人參與, 最新作者magic704226 (梅姬?沒雞?傻傻分不清楚)時間9年前 (2015/12/15 08:11), 編輯資訊
0
0
0
內容預覽:
#include <stdio.h>. #include <stdlib.h>. int main(). {. int i,j;. for(i=2;i<=6;i+=2). {. for(j=1;j<=(6-i)/2;j++) printf(" ");. for(j=1;j<=i;j++) print
(還有21個字)

推噓2(5推 3噓 7→)留言15則,0人參與, 最新作者djljing (娛樂金魚眼)時間9年前發表 (2015/12/15 04:53), 9年前編輯資訊
0
0
0
內容預覽:
求救,小弟是c的新手,請問怎樣用巢狀for畫出. **. ****. ******. (謝謝. for(i=1;i<=3;i++). {. for(k=1; ). {. printf(" ");. printf("\n");. }. for(j=1; ). {printf("*");. printf
(還有147個字)
首頁
上一頁
1
2
下一頁
尾頁