討論串[問題]C++ 九九乘法表 如何用if來寫呢??
共 13 篇文章
首頁
上一頁
1
2
3
下一頁
尾頁

推噓1(1推 0噓 3→)留言4則,0人參與, 最新作者adxis (Acquire higher)時間16年前 (2010/02/02 21:03), 編輯資訊
0
0
0
內容預覽:
不是 meta programming... 單純只是用 valarry 這個大家都遺忘的東西. #include <valarray>. #include <iostream>. using namespace std;. int main(). {. valarray<int> l(9),r(9
(還有160個字)

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者yauhh (喲)時間16年前 (2010/02/02 19:49), 編輯資訊
0
0
0
內容預覽:
記得國小的墊板嗎?. #include <iomanip>. enum Major {row, col};. void multiple_table(enum Major m, int fromRow, int fromCol,. int toRow, int toCol);. int main(i
(還有2375個字)

推噓9(9推 0噓 7→)留言16則,0人參與, 最新作者AstralBrain (妄想制御)時間16年前 (2010/02/02 18:49), 編輯資訊
0
0
0
內容預覽:
沒有問題.. #include<cstdio>. #include<functional>. #include<algorithm>. using namespace std;. using namespace std::placeholders;. int main(int argc, char*
(還有534個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者allen501pc (Linux User!)時間16年前 (2010/02/02 18:19), 編輯資訊
0
0
0
內容預覽:
恕刪.... 手癢犯賤,貼一下自己寫的:P 只要一個main()就好囉。 如有Bug,請多多指正。<(_ _)>. int main(int argc, char * argv[]). {. int a=0, b=0;. static size_t nRunTimes=0;. // Initiali
(還有1237個字)

推噓10(10推 0噓 16→)留言26則,0人參與, 最新作者StubbornLin (Victor)時間16年前 (2010/02/02 15:19), 編輯資訊
0
0
4
內容預覽:
手癢. meta-prpgramming版本. 老實說我不知道那個inline到底最佳化會不會成功. 如果會的話應該都會完全被展開來. 相當於全部寫成cout形式. 如果沒有其實就是遞迴的形式. 這是我亂寫的 有錯別打我= =. -----------------------------------
(還有1715個字)
首頁
上一頁
1
2
3
下一頁
尾頁