This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------------------------------------------------------------------ | |
程序名:sweep_mine.c | |
程序功能:在Linux终端通过输入每个小格子的坐标和flag来模拟Window平台自带的扫雷小游戏 | |
作者:张峰 [mailto:[email protected]] | |
修改日期:2013-12-6 | |
------------------------------------------------------------------------------*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct Node{ | |
int data; | |
int bf; | |
struct Node *lchild; | |
struct Node *rchild; | |
}Node; | |
#define LH 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARGS=1 | |
E_BADARGS=65 | |
TEM_FILE="/tmp/dict.tmp" | |
if [ $# -ne "$ARGS" ] | |
then | |
echo "Usage:`basename $0` word" | |
exit $E_BADARGS | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AI = AI||{}; | |
AI.historyTable = {}; //历史表 | |
//人工智能初始化 | |
AI.init = function(pace){ | |
var bill = AI.historyBill || com.gambit; //开局库 | |
if (bill.length){ | |
var len=pace.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"container/list" | |
"crypto/md5" | |
// "errors" | |
"flag" | |
"fmt" | |
"io" | |
"os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package img | |
import ( | |
"database/sql" | |
"fmt" | |
_ "github.com/go-sql-driver/mysql" | |
"io" | |
"log" | |
"net/http" | |
"os" |
OlderNewer