上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 35 下一页
摘要: 这是4X4按键映射为0-F的16个字符输入并显示在屏上的程序:[这里要额外的把单片机p1的8个脚和矩阵键盘的8个脚相连] 1 /*----------------------------------------------- 2 名称:LCD1602 3 论坛:www.doflye.net 4 编写:shifang 5 内容:通过矩阵键盘输入,依次显示0-F16中字符 6 引脚定义如下:1-VSS 2-VDD 3-V0 4-RS 5-R/W 6-E 7-14 DB0-DB7 15-BLA 16-BLK 7 -------------------------------------... 阅读全文
posted @ 2014-04-02 22:51 beautifulzzzz 阅读(1470) 评论(0) 推荐(0)
摘要: >__ //包含头文件,一般情况不需要改动,头文件包含特殊功能寄存器的定义 9 #include 10 11 sbit RS = P2^4; //定义端口 12 sbit RW = P2^5; 13 sbit EN = P2^6; 14 15 #define RS_CLR RS=0 16 #define RS_SET RS=1 17 18 #define RW_CLR RW=0 19 #define RW_SET RW=1 20 21 #define EN_CLR EN=0 22 #define EN_SET EN=1 23 24 #define DataPort P0... 阅读全文
posted @ 2014-04-02 18:05 beautifulzzzz 阅读(9973) 评论(11) 推荐(4)
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 #define e 0.00000001 6 #define maxn 50 7 8 int n;//规模nXn 9 double a[maxn][... 阅读全文
posted @ 2014-04-01 00:37 beautifulzzzz 阅读(11580) 评论(0) 推荐(2)
摘要: DescriptionYour new company is building a robot that can hold small lightweight objects. The robot will have the intelligence to determine if an objec... 阅读全文
posted @ 2014-03-30 16:13 beautifulzzzz 阅读(627) 评论(0) 推荐(0)
摘要: "One thing is for certain: there is no stopping them;the ants will soon be here. And I, for one, welcome ournew insect overlords."Kent BrockmanPiotr l... 阅读全文
posted @ 2014-03-30 14:55 beautifulzzzz 阅读(1145) 评论(0) 推荐(1)
摘要: DescriptionProgramming contests became so popular in the year 2397 that the governor of New Earck -- the largest human-inhabited planet of the galaxy ... 阅读全文
posted @ 2014-03-30 13:06 beautifulzzzz 阅读(583) 评论(0) 推荐(0)
摘要: >__max){140 max=grades[0][m];141 u=m; 142 }143 else if(grades[0][m]==max){144 if(grades[1][m]>grades[1][u])u=m;145 }146 147 if(grades[1][m]>max){148 max=grades[1][m];149 ... 阅读全文
posted @ 2014-03-29 19:29 beautifulzzzz 阅读(797) 评论(0) 推荐(0)
摘要: >__0时,将2^k X 2^k 棋盘分割为4个2^(k-1) X 2^(k-1)子棋盘,特殊格必位于四块小的棋盘之一中,其余3个子棋盘无特殊方格,为了将这3个无特殊的格子棋盘转化为特殊棋盘,我们可以用一个L型的骨牌覆盖这3个较小的企盼汇合处,从而将问题转化为4个较小规模的企盼覆盖问题,递归使用这种... 阅读全文
posted @ 2014-03-27 21:48 beautifulzzzz 阅读(4494) 评论(0) 推荐(0)
摘要: >____max){119 max=grades[0][m];120 u=m; 121 }122 else if(grades[0][m]==max){123 if(grades[1][m]>grades[1][u])u=m;124 }125 126 if(grades[1][m]>max){127 max=grades[1][m];128 ... 阅读全文
posted @ 2014-03-26 17:58 beautifulzzzz 阅读(1889) 评论(0) 推荐(1)
摘要: TicTac.h 1 #define EX 1 //该点左鼠标 2 #define OH 2 //该点右鼠标 3 4 class CMyApp : public CWinApp 5 { 6 public: 7 virtual BOOL InitI... 阅读全文
posted @ 2014-03-26 12:34 beautifulzzzz 阅读(5437) 评论(0) 推荐(0)
摘要: 在整数n的所有不同划分中,将最大加数n1不大于m的划分个数记为q(n,m),则q的递推关系式为: 1 #include 2 using namespace std; 3 int q(int n,int m){ 4 if((n>n){14 cout<<n<<" 的划分数量为 :... 阅读全文
posted @ 2014-03-26 11:05 beautifulzzzz 阅读(877) 评论(0) 推荐(0)
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 /* 8 问题检查函数 9 参数:输入的字符串10 返回:BOOL11 真表示为编码问题12 假表示为解码问题13 */1... 阅读全文
posted @ 2014-03-26 10:54 beautifulzzzz 阅读(3244) 评论(1) 推荐(0)
摘要: a、鼠标软件模拟,函数SendMessageb、分析窗口内棋子相对坐标X,Yc、软件模拟点击棋盘坐标x,y处的棋子::SendMessage(hwnd,WM_LBUTTOMDOWN,0,YX);//hwnd=FindWindow(NULL,游戏标题);::SendMessage(hwnd,WM_LBUTTOMUP,0,YX); //PostMessage/mouse_event>__< : 新加入一个int 类m_pos变量 1 void CFewDlg::OnButton4() //外挂程序 2 { 3 CString POS;// 4 GetDlgItemText(IDC_.. 阅读全文
posted @ 2014-03-26 00:14 beautifulzzzz 阅读(1416) 评论(0) 推荐(0)
摘要: ::承接外挂4::a、编程读出棋盘数据b、棋盘数据显示出来 1 void CFewDlg::OnButton3() 2 { 3 int chessdata[3][3];//a[y][x] 4 5 HWND gameh=::FindWindow(NULL,"井字棋");//获取窗口句柄 6 //获取窗口进程ID 7 DWORD processid; 8 ::GetWindowThreadProcessId(gameh,&processid); 9 HANDLE processH=::OpenProcess(PROCESS_ALL_AC... 阅读全文
posted @ 2014-03-25 23:13 beautifulzzzz 阅读(1419) 评论(0) 推荐(0)
摘要: a、找棋盘数据基址b、分析棋盘数据结构综合使用搜索技巧,这要看你的聪明才智啦![如本例:首先精确查找0,然后点一下左上角的一个,再次筛选出变化的,重开盘,再搜变化的,发现期盼规律为值为0表示没有棋子,为1表示你的棋子,为2表示对手的棋子,进而用增加1减少1反复筛选得出首地址,然后4字节的加,计算出棋盘地址] 阅读全文
posted @ 2014-03-25 22:26 beautifulzzzz 阅读(1046) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 35 下一页