void CWriteWnd::OpenFileDialog(){ OPENFILENAME ofn; TCHAR szFile[MAX_PATH] = _T(""); ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); o.....
http://blog.csdn.net/wogel/article/details/9631781duilib之源码分析《duilib之源码分析》 1 stdAfx.h* lengthof(x) 计算数组长度宏* MAX两值最大* MIN两值最小* CLAMP(x,a,b) x在a,b之间则取x否...
分类:
其他好文 时间:
2014-07-06 22:49:25
阅读次数:
457
Max Points on a LineGivennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.点和方向确定一条直线。需要两重循环,第一重循环遍历起始点a,第二重...
分类:
其他好文 时间:
2014-07-06 18:21:01
阅读次数:
175
abractyeyt,dgdsaeactyey的最长子串为actyeyconst int maxSize = 100;char suffix[2][maxSize][maxSize];int max_sub(char* s1, int len1, char* s2, int len2){ fo...
分类:
其他好文 时间:
2014-07-06 18:13:00
阅读次数:
150
du-ah--max-depth=1 这个是我想要的结果 a表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度。du命令用来查看目录或文件所占用磁盘空间的大小。常用选项组合为:du-sh 一、du的功能:`du`reportstheamoun....
分类:
系统相关 时间:
2014-07-06 15:29:54
阅读次数:
341
DescriptionThe cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 #includeint min(int a,int b){ if(a>b) ...
分类:
其他好文 时间:
2014-07-06 14:21:54
阅读次数:
215
1. 使用Random类的nextInt方法:Random rand = new Random();rand.nextInt(max);, 此时输出[0,max),注意右边是开区间,如果需要设定最小值可通过 rand.nextInt(max-min+1)+min方式,此时的范围为[min,max]i...
分类:
编程语言 时间:
2014-07-06 14:14:11
阅读次数:
257
1 #include 2 using namespace std; 3 int main(){ 4 int i,n,a[1000],c[10]={0},max=0; 5 cin>>n; 6 for(i=0;i>a[i]; 8 for(i=0;i<n;++i) 9 ...
分类:
其他好文 时间:
2014-07-05 18:40:55
阅读次数:
244
建立一个有向图的邻接表,首先要构思好它的邻接表里面包含哪些结构数据,然后根据哪些数据来建立相应的结构体。但也要注意数据的输入。#include #include #define MAX_SIZE 10typedef struct ArcNode //弧节点结构体{ ...
分类:
其他好文 时间:
2014-07-05 11:14:30
阅读次数:
177
CD
You have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on CDs. You need to have it on tapes so the problem to solve is: you have a tape N min...
分类:
其他好文 时间:
2014-07-03 15:34:36
阅读次数:
176