Image-Pro Plus v6.0 1CD(专业图像分析软件)Inivis.AC3D.v5.0.WinALL 1CD(3D设计软件)Informatix.Piranesi.v5-ISO 1DVD(空间彩绘专家)IlluMinate.Labs.Turtle.v1.1.5.2.for.Maya.6....
分类:
其他好文 时间:
2014-07-22 22:54:15
阅读次数:
190
题目:就是求在同一直线上的点最多的个数。分析:斜率相同,那么它们就在一条直线上。unordered_map 简单介绍:boost::unordered_map是计算元素的Hash值,根据Hash值判断元素是否相同。所以,对unordered_map进行遍历,结果是无序的。来自为知笔记(Wiz)
分类:
其他好文 时间:
2014-07-19 19:37:23
阅读次数:
205
lib/pathalloc.c#include "apue.h"#include #include #ifdef PATH_MAXstatic int pathmax = PATH_MAX;#elsestatic int pathmax = 0;#endif#define SUSV3 200112L...
分类:
其他好文 时间:
2014-07-19 19:34:54
阅读次数:
280
一个简单而经典的dp;若数组a:1 3 2 4则数组b:1 4 3 8b[i]每一个都要向前找 合法 的最大b[x]值加上当前的a[i];如b[2]=b[0]+a[2];#include using namespace std;int a[1001];int b[1001];int max_b(in...
分类:
其他好文 时间:
2014-07-19 19:32:30
阅读次数:
182
有向图是否具有欧拉通路或回路的判定:欧拉通路:图连通;除2个端点外其余节点入度=出度;1个端点入度比出度大1;一个端点入度比出度小1 或 所有节点入度等于出度欧拉回路:图连通;所有节点入度等于出度#include#include#define MAX 27int in[MAX],out[MAX];i...
分类:
其他好文 时间:
2014-07-19 19:31:05
阅读次数:
178
#include "stdafx.h"int _tmain(int argc, _TCHAR* argv[]){ int a = 1, b = 1, c = 0; int max = 0x7FFFFFFF; printf("%d\n", max);// 打印一下整型的最大值 ...
分类:
其他好文 时间:
2014-07-18 23:36:57
阅读次数:
191
lib/openmax.c#include "apue.h"#include #include #ifdef OPEN_MAXstatic long openmax = OPEN_MAX;#elsestatic long openmax = 0;#endif/* * If OPEN_MAX is i...
分类:
其他好文 时间:
2014-07-18 23:36:31
阅读次数:
279
一个天天跟c#奋斗的苦逼c++程序员 改自己以前代码的时候发现有如下几行.
char szPath[MAX_PATH] = {0};
GetModuleFileNameA(NULL,szPath,sizeof(szPath));
std::string strPath = szPath;
std::string strDir = strPath.substr(0,strPa...
分类:
其他好文 时间:
2014-07-18 22:24:31
阅读次数:
187
/*
D - 简单dp 例题
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum ...
分类:
其他好文 时间:
2014-07-18 22:23:25
阅读次数:
231
《C++ Primer Plus》学习笔记3
第8章 函数探幽
========================================================================
1、C++内联函数和常规函数
1)常规函数调用使程序跳到另一个地址(函数地址),并在函数结束时返回。具体过程是执行到函数调用指令时,程序将在函数调用后立即储存指令的内存地址,...
分类:
编程语言 时间:
2014-07-18 21:36:04
阅读次数:
334