2015年9月19日

蛇形填充

摘要: 蛇形填充 1 //局限性:由于编译框显示限制,只能实现1-20的功能 2 #include 3 #include 4 using namespace std; 5 #define MAXN 20 6 int a[MAXN][MAXN]; 7 8 int main(){ 9 int ... 阅读全文

posted @ 2015-09-19 17:57 逸阳 阅读(404) 评论(0) 推荐(0)

矩阵相乘

摘要: 矩阵相乘的程序: 1 #include 2 #include 3 4 bool check(int row1,int col1,int row2,int col2){//检测两个矩阵是否可以相乘 5 if(row1>0&&col1>0&&row1>0&&col2>0){ 6 ... 阅读全文

posted @ 2015-09-19 14:24 逸阳 阅读(212) 评论(0) 推荐(0)

导航