2011年5月15日
摘要:
#include <tchar.h>#include <wtypes.h>#include <winsvc.h>#include <AFXCOM_.H>#include <vector>#include <string>// 设置连接器选项,不弹出控制台窗口 #pragma comment(linker, "/subsystem:windows /entry:mainCRTStartup")// 枚举系统服务项状态信息typedef struct _ENUM_SERVICE_INFO{ std::str
阅读全文
posted @ 2011-05-15 23:37
潇湘雨歇
阅读(265)
推荐(0)
2011年5月14日
摘要:
////////////////////////////////////////////////////////////// 文件夹拷贝高效实现. VC++6.0 控制台实现// 作者:liujichao8567#163.com// 转载请邮件通知作者,谢谢!///////////////////////////////////////////////////////////// 头文件包含#include <wtypes.h>#include <winnt.h>#include <shellapi.h>#include <io.h>#inclu
阅读全文
posted @ 2011-05-14 03:09
潇湘雨歇
阅读(1212)
推荐(0)
2011年5月11日
摘要:
// DES.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>//////////////////////////////////////////////////////////////////////////// DES加密、解密算法// 作者:liujichao// DES算法:64位明文(不足需补位) + 56位密钥(8个校验位) --> 64位密文// 定义32位无符号类型typedef unsigne
阅读全文
posted @ 2011-05-11 23:51
潇湘雨歇
阅读(6172)
推荐(0)
2011年5月2日
摘要:
//////////////////////////////////////////////////////////////////////////// 栈的链式实现// 2011-5-2 by kida#163.com//template <typename T>class Stack{public: typedef T value_type; typedef value_type& reference; typedef const value_type& const_reference;private: // 链栈的节点数据结构 typedef struct N
阅读全文
posted @ 2011-05-02 19:40
潇湘雨歇
阅读(222)
推荐(0)
摘要:
//////////////////////////////////////////////////////////////////////////// 栈的数组实现// 2011-5-2 by kida#163.com//// 栈的最大容量const int MAX_STATCK_SIZE = 10;template <typename T>class Stack{public: typedef T value_type; typedef value_type& reference; typedef const value_type& const_referenc
阅读全文
posted @ 2011-05-02 17:33
潇湘雨歇
阅读(173)
推荐(0)
2010年12月24日
摘要:
How can I convert a floating-point value to an integer in C?This is one of the frequently asked questions about the C language, and it is discussed in short in the C FAQ list, as question 14.6. The answer there suggests the use an expression like but admits that this technique does not work for nega
阅读全文
posted @ 2010-12-24 02:36
潇湘雨歇
阅读(1229)
推荐(0)
2010年12月20日
摘要:
divide 等分split分割(字符串)// 将圆进行n等分,取得等分坐标序列void Circle::DividedEqual(CoordSequence& seq, int n){}// 维护圆等分坐标序列LayoutCircle{// 建立映射对typdef mapObjectIDType, int CoordSequenceMap;// 建立外部节点和坐标的映射SetPosition(int n, ObjectIDType ulNodeID);// 获取外部节点的坐标GetPosition(ObjectIDType ulNodeID);// 获取坐标映射序列GetAllPosit
阅读全文
posted @ 2010-12-20 00:46
潇湘雨歇
阅读(402)
推荐(0)
2010年10月26日
摘要:
【最终结果图】【简单设计流程】1. 创建工程:根据VC向导程序创建一个Dialog Based应用程序,进入资源视图,在对话框模板上创建一个Picture控件来设置属性页的显示范围,调整好Picture到合适大小,如下图: 我们假设Picture控件的ID为IDC_SHEET_RECT。注:这是教程,用不着过于拘泥界面的美观!2. 创建三个属性页模板:在VC的资源视图中插入一个对话框,拖动到合适大...
阅读全文
posted @ 2010-10-26 21:48
潇湘雨歇
阅读(3024)
推荐(0)
2010年9月12日
摘要:
http://wenku.baidu.com/view/4ecc6a93daef5ef7ba0d3c3a.html经常聊天的人一定要看哦1.当你收到“你干嘛呢?” 实际上是想说“我想你了” 2.当你收到“呵呵”,多是没笑或者傻笑 3.但如果是“哈哈” “嘿嘿”或者“嘎...
阅读全文
posted @ 2010-09-12 17:00
潇湘雨歇
阅读(266)
推荐(0)
摘要:
函数的“template参数推导机制”:根据函数的参数类型推导出模板类型// 示例template <typename T>T Add( T a, T b) { return ( a + b );}// main.cppint main() { intx = 9; int y = 1; int tmp = Add(x, y); // 这里编译器自动推导出模板类型...
阅读全文
posted @ 2010-09-12 10:56
潇湘雨歇
阅读(173)
推荐(0)