码迷,mamicode.com
首页 >  
搜索关键字:基本bash脚本练习 max min    ( 41645个结果
Win32 实现 MFC CFileDialog 对话框
void CWriteWnd::OpenFileDialog(){ OPENFILENAME ofn; TCHAR szFile[MAX_PATH] = _T(""); ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); o.....
分类:Windows程序   时间:2014-07-07 08:31:40    阅读次数:327
duilib之源码分析
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
【LeetCode】Max Points on a Line
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
linux下使用 du查看某个文件或目录占用磁盘空间的大小
du-ah--max-depth=1 这个是我想要的结果 a表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度。du命令用来查看目录或文件所占用磁盘空间的大小。常用选项组合为:du-sh 一、du的功能:`du`reportstheamoun....
分类:系统相关   时间:2014-07-06 15:29:54    阅读次数:341
poj 2393 Yogurt Factory(贪心)
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
java生成随机整数
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
数组-07. 求一批整数中出现最多的个位数字(20)
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
UVA 624 CD
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!