搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
sf_200562516252
- 一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = ne
34211
- 图像灰度的改变 void CDibView::OnZftJh() { CClientDC pDC(this) HDC hDC=pDC.GetSafeHdc() //获取当前设备上下文的句柄; SetStretchBltMode(hDC,COLORONCOLOR) CDibDoc *pDoc=GetDocument()-Grayhound change void CDibView : : OnZftJh () (CClientDC pDC (this) HDC pDC.GetSafeHdc
怎样获取快捷方式所指向的目标文件名
- 怎样获取快捷方式所指向的目标文件名? HRESULT hres IShellLink* psl HRESULT hres IShellLink* psl char szGotPath[MAX_PATH] char szDescr iption[MAX_PATH] WIN32_FIND_DATA wfd OleInitialize(0) hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLi
单机版的‘三子棋’游戏(附源码)
- 听说过‘三子棋’游戏吗?该程序是单机版的‘三子棋’游戏。规则很简单:下子阶段,组成’三‘时,可把对方的子变为无效子(下完后该子会被去掉)。行棋阶段,组成“三”时,可把对方的子直接去掉。谁最先无子谁就输-heard 'three-game' game? The program is stand-alone version of the 'three-game' game. Very simple rules : Now phase, composed of '
Coverage2svg
- 把ArcInfo Coverage中的polygon数据(pal)导出为SVG图形。函数原型: //public void static Coverage2svg.pal2svg(string CoverageDirectory,string OutputSVGPath) -put ArcInfo Coverage of polygon data (pal) export to SVG graphics. Prototype : / / public static void Coverage2s
MD5加密的C++类
- 这是一个好用的MD5的C++类;这个类可以加在控制台 程序中也可用在MFC中, 并且提供了详细的错误处理 函数,是一个安全的类。例程是一个MD5的MFC程序, 支持字符串和文件两种输入。 LPCSTR TargetFile(char *filename=NULL) //计算文件的MD5值 void TargetStr(LPCSTR str) //计算字符串的MD5值 LPCSTR GetDigestKey() //取MD5运算后的结果 LPCSTR GetErr() //如果有错误,取错误字串
Cryptix_src_3-0-3
- 1.BOOL OnCommsCreate(CWnd* pParentWnd) 创建串口,本DLL同时创建5个串口。pParentWnd为窗口指针,一般为this。 2. BOOL OnComportOpen() 根据串口设置文件中的设置参数,打开多串口。 3.void OnCommSend(unsigned int uiCom, CString sSendData, unsigned int uiKind) 往指定串口发送数据。其中uiCom为指定的串口,注意串口1的u
c语言中写二进制数
- c语言中写二进制数。引用例子: #define Bin(n) LongToBin(0x##n##l) void main(void) { unsigned char c c = Bin(10101001) // c = 0xA9 } -Write binary number in C language. Cited code: #define Bin(n) LongToBin(0x##n##l) void main(void) {
菜单的使用
- 菜单 分别open,和 close 生成成员函数。 void CMenu9Dlg::OnMenuclose() { // TODO: Add your command handler code here OnOK() } void CMenu9Dlg::OnMenuopen() { // TODO: Add your command handler code here MessageBox(\"open the file\",\
均衡化等
- “增强处理”按钮下,分别为规范化处理和均衡化处理。 函数在响应对应的函数下,在1View.cpp下分别为void CMy1View::Onjunheng() 和void CMy1View::Onguifan()。-"Enhancement" button, respectively, for a standardized management and balanced treatment. Function in response to the correspond
namab
- ergydfhgdfhggfhg 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KE
fchh
- 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KEYWORD: 关键字 \"auto\
void create
- 功能:可以输入姓名查询自己的航班信息 可以订票,退票 可以增加航班(设置了密码) 几个函数功能的描述2 -functions : names can be imported to inquire about his flight booking information can be, Refund can increase the number of flights (with a password) Several Function describes the 2
GB2UTF8
- GB转UTF8 void ConvertGBKToUtf8(CString& strGBK)-GB switch UTF8 void ConvertGBKToUtf8 (redeem
DirectX8JC
- 《DirectX8教程》配套代码 [涉及平台] VC++ [作者] void [文件大小] 1003KB [更新日期] 2005-10-29 本代码来自CZVC编程网: HTTP://WWW.CZVC.COM-"DirectX8 Guide" complementary code [involving platform] VC void [Author] [large documents small] 1003KB [u
COMYLYYY
- 《COM原理与应用》配套代码 [涉及平台] VC [作者] void [文件大小] 667KB [更新日期] 2005-10-23 10:23:00 -"COM Theory and Application" complementary code [involving platform] VC void [Author] [Size] 667KB [updated] 2005-10-23 10:23:00
控制链接ODBC
- HICON m_hIcon _ConnectionPtr m_pCon //连接对象 _RecordsetPtr m_pRs //记录集对象 BOOL LoadDbSource(CString strSourceName,CString strSourceDb, CString strDescr iption) // Generated message map functions //{{AFX_MSG(CCodeCtrlOdbcDlg) virt
void_electrical_breakdown
- Fully coupled electric field –elastoplastic interaction to simulate the void caused by electrical breakdown(Fully coupled electric field-elastoplastic interaction to simulate the void caused by electrical breakdown)