码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
linux stat函数详解
linux stat函数详解 表头文件: #include #include 定义函数: int stat(const char *file_name, struct stat *buf);函数说明: 通过文件名filename获取文件信息,并保存在bu...
分类:系统相关   时间:2014-05-07 14:17:12    阅读次数:541
linux 中常用的一些头文件
#include 是在linux-2.6.29/include/linux下面寻找源文件。#include 是在linux-2.6.29/arch/arm/include/asm下面寻找源文件。#include 是在linux-2.6.29/arch/arm/mach-s3c2410/incl...
分类:系统相关   时间:2014-05-07 14:06:31    阅读次数:421
CreateRemoteThread 远程dll注入
1.dll中的内容// dllmain.cpp : 定义 DLL 应用程序的入口点。#include "stdafx.h"BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, ...
分类:其他好文   时间:2014-05-07 12:56:25    阅读次数:429
C/C++ -- Gui编程 -- Qt库的使用 -- 标准对话框
-----mywidget.cpp----- 1 #include "mywidget.h" 2 #include "ui_mywidget.h" 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inclu...
分类:编程语言   时间:2014-05-07 12:50:20    阅读次数:447
c++ primer plus(第6版)中文版 第七章编程练习答案
第七章编程练习答案 7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数 //7.1编写一个程序,用户不停输入两数,直到有0出现为止,计算调和平均数 #include using namespace std; double average (unsigned x, unsigned y) { return (2.0 * x * y / (x + y)); } i...
分类:编程语言   时间:2014-05-07 12:03:52    阅读次数:727
Uva 12009 平方数尾数与自身相同 dfs 构造
题目链接:点击打开链接 题意:rt 思路:从最低位开始构造,若x位的平方数是自身则继续构造。 mark: #pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2014-05-07 11:59:23    阅读次数:303
POJ3714 最近点对
变形了的最近点对,关键在于计算距离的时候,如果同类点的话,直接判定为无穷大即可。 其他闲话: (1)因为一些原因,被迫暂时用回C++. (2)好久没刷题,忘记了数组一开始要开最大,多次new和delete,导致超时。 (3) 感觉算法导论的最近点对没有考虑到有多个点都在一条vertical line上的情形。 #include #include #include #include...
分类:其他好文   时间:2014-05-07 11:29:11    阅读次数:334
变量自增整理
#include using namespace std;#define Max(a, b)((a > b)? a : b)int count = 9;int nMax = Max(count++, ++count);int main(){ cout<<count<<endl; cout<<...
分类:其他好文   时间:2014-05-07 11:07:48    阅读次数:242
HDU 2243 考研路茫茫——单词情结(AC自动机+DP+快速幂)
题目链接错的上头了...这题是DNA的加强版,26^1 +26^2... - A^1-A^2...先去学了矩阵的等比数列求和,学的是第二种方法,扩大矩阵的方法。剩下就是各种模板,各种套。#include #include #include #include #include #include #in...
分类:其他好文   时间:2014-05-07 00:24:11    阅读次数:446
括号匹配(栈的应用)
#include #include #include using namespace std;int main(){ int n;cin>>n; while(n--){ stack s; string str;cin>>str; for(int ...
分类:其他好文   时间:2014-05-07 00:19:41    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!