摘要: 人工智能实验时写的代码: 1 //shudu.cpp 数独游戏 2 #include<iostream> 3 #include<iomanip> 4 #include<fstream> 5 #include<cstdlib>//c语言中为#include<stdlib.h> 6 usingnamespace std; 7 8 //定义数据结构 9 int shudu[9][9]={0}; 10 11 //初始化数据 12 void init() 13 { 14 int i=0,j=0; 15 ifstream fin("in 阅读全文
posted @ 2011-02-27 15:43 busyfruit 阅读(7804) 评论(0) 推荐(0) 编辑
摘要: //DsVigenere.cpp 穷举搜索法破解Vigenere#include<iostream>#include<fstream>#include<string>#include<cstdlib> //#include<stdlib.h>#include<windows.h>using namespace std;////data structureconst int pmsize=1000;//the maximum length of the plaintext//int i=0,j=0; //global var 阅读全文
posted @ 2011-02-27 15:29 busyfruit 阅读(6716) 评论(0) 推荐(0) 编辑