摘要: // dictDlg.cpp: 实现文件//MFC 创建MFC项目 -->对话框项目 MFC的ui界面在 视图->资源视图->Dialog里面 #include "pch.h"#include "framework.h"#include "dict.h"#include "dictDlg.h"#in 阅读全文
posted @ 2019-06-15 16:19 countryboy666 阅读(310) 评论(0) 推荐(0) 编辑
摘要: #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include <assert.h> typedef struct dict{ char* 阅读全文
posted @ 2019-06-15 12:02 countryboy666 阅读(115) 评论(0) 推荐(0) 编辑
摘要: /* #define _CRT_SECURE_NO_WARNINGS 为了在vs中编译 二次打开文件 运行时间会变长 */ #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <stdlib.h>#include <string.h># 阅读全文
posted @ 2019-06-15 10:30 countryboy666 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /*1活动范围怎么设计2 蛇身设计实现3 控制4 食物5 吃食物*/ #include <iostream>#include <cstdlib>#include <conio.h>#include <time.h>#include <Windows.h>#include <assert.h>usin 阅读全文
posted @ 2019-06-15 07:04 countryboy666 阅读(83) 评论(0) 推荐(0) 编辑
摘要: <!-- p, li { white-space: pre-wrap; } --> <!--StartFragment-->#include <string.h> int main(void) { char *shex = "000f000f"; int idec =0; int i,mid; in 阅读全文
posted @ 2019-06-06 07:40 countryboy666 阅读(185) 评论(0) 推荐(0) 编辑
摘要: select系统调用的的用途是:在一段指定的时间内,监听用户感兴趣的文件描述符上可读、可写和异常等事件信号量和互斥锁(mutex)的区别:互斥锁只允许一个线程进入临界区,而信号量允许多个线程同时进入临界区。临界资源:具有排他性的资源,同一个存储空间进行读写的代码区. 僵死进程: 子进程退出时,父进程 阅读全文
posted @ 2019-06-06 07:29 countryboy666 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 简单工厂模式,是一种实例化对象的方式,只要输入需要实例化对象的名字,就可以通过工厂对象的相应工厂函数来制造你需要的对象。 简单工厂模式的核心是,对于一个父类的多个继承子类,工厂对象的工厂函数根据用户输入, class Operation{ private: double m_a,m_b; publi 阅读全文
posted @ 2019-06-06 07:25 countryboy666 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 事物的基本特性: 原子性:一个事务必须视为不可分割的最小单元.整个事务的所有操作要么全部提交成功,要么回滚失败.一致性: 数据库总数从一个以执行转换到另外一个一致性的状态.间隔型: 一个事务所作的修改在最总提交前,对其他事务是不可见的.持久性:一旦事务提交,则其所作的修改就会永久保存,计时系统崩溃, 阅读全文
posted @ 2019-06-06 07:19 countryboy666 阅读(257) 评论(1) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>#include <string.h>#pragma message "X_86 message" char *reserve(char *p,int len);char* reverstr(char * x);int mai 阅读全文
posted @ 2019-06-06 07:15 countryboy666 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 单目运算符最好重载为类的成员函数;双目运算符则最好重载为类的友元函数。 向量 vector 是一种对象实体, 能够容纳许多其他类型相同的元素, 因此又被称为容器。 与string相同, vector 同属于STL(Standard Template Library, 标准模板库)中的一种自定义的数据 阅读全文
posted @ 2019-06-04 21:25 countryboy666 阅读(208) 评论(0) 推荐(0) 编辑