上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: #include #include #include #include #include #include #include using namespace std; #define SNO_LEN 30 #define NAME_LEN 50 #define DEPART_LEN 100 #define SSEX_LEN 5 int main() { SQLHENV ... 阅读全文
posted @ 2016-05-26 16:37 叶建成 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 1 //串的模式匹配算法 2 //KMP算法,时间复杂度为O(n+m) 3 #include 4 #include 5 #include 6 using namespace std; 7 8 //-----串的定长顺序存储结构----- 9 #define MAXLEN 255 //串的最大长度 10 typedef struct { 11 char ch... 阅读全文
posted @ 2016-04-03 15:27 叶建成 阅读(621) 评论(0) 推荐(0) 编辑
摘要: vim game_2048.c,按下i进入编辑模式,然后将上面的代码复制进去,再按Esc退出编辑模式,按下:x保存并退出。 然后在终端运行:gcc game_2048.c -o 2048 -lcurses 进行编译,最后输入./2048即可运行2048。方向键是wasd。 效果截图: 阅读全文
posted @ 2016-03-26 00:05 叶建成 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 #define N 15 5 6 int chessboard[N + 1][N + 1] = { 0 }; 7 8 int whoseTurn = 0; 9 10 void initGame(void); 阅读全文
posted @ 2016-03-25 23:08 叶建成 阅读(570) 评论(0) 推荐(1) 编辑
摘要: 1 <!doctype html> 2 <html> 3 4 <head> 5 <meta charset="utf-8"> 6 <title>Baymax</title> 7 8 <style> 9 body { 10 background: #595959; 11 } 12 13 #baymax 阅读全文
posted @ 2016-03-25 20:43 叶建成 阅读(946) 评论(1) 推荐(1) 编辑
摘要: 1 #-*- coding:utf-8 -*- 2 3 import curses 4 from random import randrange, choice # generate and place new tile 5 from collections import defaultdict 6 阅读全文
posted @ 2016-03-25 20:09 叶建成 阅读(918) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <stdio.h> 3 #include <string.h> 4 5 using namespace std; 6 7 char g[90]; 8 9 bool isPlace(int n) 10 { 11 for (int i = 阅读全文
posted @ 2015-12-14 00:34 叶建成 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 运行结果截图: 阅读全文
posted @ 2015-09-01 00:36 叶建成 阅读(4726) 评论(2) 推荐(1) 编辑
摘要: 技术: -HTML -CSS -Javascript -JQuery 下面是代码内容 index.html 2048.css main2048.js showanimation2048.js support2048.js jquery.min.js(来自http://libs.baidu.com/j 阅读全文
posted @ 2015-08-16 17:33 叶建成 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: 截图看不出效果^-^ 阅读全文
posted @ 2015-08-09 10:43 叶建成 阅读(622) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页