2010年12月28日

判断十二星座——我的算法,大家看是不是比较简便

摘要: #include <iostream>#include <string>using namespace std;int main(){int month=7, day=14;string str[] = {"水瓶座: 1月20日 - 2月18日","双鱼座: 2月19日 - 3月20日","白羊座: 3月21日 - 4月19日","金牛座: 4月20日 - 5月20日","双子座: 5月21日 - 6月21日","巨蟹座: 6月22日 - 7月22日" 阅读全文

posted @ 2010-12-28 10:39 cv_ml_张欣男 阅读(720) 评论(3) 推荐(2) 编辑

螺旋矩阵--我的实现方法

摘要: /* -2 -1 0 1 2 3-221 22 23 24 25 26-120 7 8 9 10 270 19 6 1 2 11 281 18 5 43 12292 17 16151413303 36 35 34333231*/以1的位置为坐标(0,0),向右为X轴正方向,向下为Y轴正方向/* -2 -1 0 1 2 3-221 22 23 24 25 26-1207 8 9 10 27019 6 1 2 11 28118543122921716151413303363534333231*/#include <iostream>using namespace std;int get 阅读全文

posted @ 2010-12-28 10:16 cv_ml_张欣男 阅读(476) 评论(0) 推荐(0) 编辑

导航