DSA for VC
skybstdio
这个作者很懒,什么都没留下…
展开
-
(codes)eight queens program
// eight_queen.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "stdio.h"#include "Stdlib.h"#define max 8struct qipan{ int k[max+1];//0号不用,k[i]存放第i行棋子的列位置,k原创 2006-07-28 17:53:00 · 712 阅读 · 0 评论 -
(codes)a program convert a dec into a hex
// keyhex.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include# include #define ESC 0x001b /* exit*/# define ERROR -1# define OK 1#d原创 2006-07-29 16:29:00 · 671 阅读 · 0 评论 -
(codes)a program that could be used to restart computer
// RestartComputer.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include "windows.h"void main(int argc, char* argv[]){typedef int (CALLBACK *SHUTDOWNDLG)(int); //原创 2006-07-28 17:52:00 · 721 阅读 · 0 评论 -
(codes)二叉树的系列算法,递归与非递归
// tree_li.cpp : 定义控制台应用程序的入口点。//程序共能有://递归与非递归:创建树,先序、中序、后续遍历二叉树,求某一结点的所有祖先//VC60下调试通过!//#include "stdafx.h"# include # include #include using std::stack;# define ERROR -1# de原创 2006-08-09 08:43:00 · 576 阅读 · 0 评论 -
对桌面菜单系统的总结(1)
最近写了一个桌面菜单系统,可以扩充成网吧菜单系统。我总结下用到的技术,以及重要的算法:1.使用MSXML时需要: 加载库文件 #import 然后 在APP里 AfxOleInit(); 然后开始读文件:StrVec LoadXmlByID(const char* filePath,const char* pathID){ StrVec ret; MSXML2::原创 2008-08-07 13:56:00 · 339 阅读 · 0 评论