摘要: 1.菱形 2.求鞍点:算法一: 算法二: 3. 一行数字(6个数)向左平移,打印出依次平移的六行 一行数字(6个数)向右平移,打印出依次平移的六行 4.输入行和列,出现数字转圈的效果。例:输入4,4。结果: 01 02 03 04 12 13 14 05 11 16 15 06 10 09 08 0 阅读全文
posted @ 2016-06-06 21:21 xiang-xiang 阅读(177) 评论(0) 推荐(0)
摘要: 注:方法一中ps.close()不可注掉;jar包加入:Java Build Path-libraries-addpackage aa; import java.sql.*; public class gold1{ static Connection con = null; static PreparedStatement ps = null; static Result... 阅读全文
posted @ 2016-05-10 19:59 xiang-xiang 阅读(189) 评论(0) 推荐(0)
摘要: package aa; import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.imageio.stream.IIOByteBuffer; /*例外:周一第一节大课为a同学课程:具体时间为7-15周,只在单周上课。 周五第四节大课为a同学课程:具体... 阅读全文
posted @ 2016-05-10 08:55 xiang-xiang 阅读(658) 评论(0) 推荐(0)
摘要: #include //线性表的基本操作#include #include #define LIST_INIT_SIZE 100 //线性表存储空间的初始分配量 #define LISTINCREMENT 10 //线性表存储空间的分配增量 typedef struct{ int ... 阅读全文
posted @ 2015-10-24 16:32 xiang-xiang 阅读(230) 评论(0) 推荐(0)
摘要: #include#include #include typedef struct LNode{ int data; struct LNode *next; }LNode,*Linklist; int InitList(Linklist&L){ L = new LNode; ... 阅读全文
posted @ 2015-10-24 16:31 xiang-xiang 阅读(256) 评论(0) 推荐(0)