码迷,mamicode.com
首页 >  
搜索关键字:include    ( 84546个结果
c 自定义sqrt算法。
转载自:http://www.examw.com/biancheng/c/194822/#include #include #include #define ACC 0.000000001double newSqrt(double n){ double low, high, mid, tmp; if...
分类:编程语言   时间:2015-07-08 14:32:29    阅读次数:110
LA 2678 Subsequence
题意:给出n个整数,给定整数S,求长度最短的连续序列,使它们的和大于或等于S第一种,是求前缀和,然后用lower_bound来找第二种,尺取法, 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #i...
分类:其他好文   时间:2015-07-08 14:31:26    阅读次数:127
习题3.4 & 3.5: 求两链表的交集和并集
#include#includestruct Node;typedef struct Node *PtrToNode;typedef PtrToNode List;typedef PtrToNode Position;struct Node{ ElementType Ele; PtrTo...
分类:其他好文   时间:2015-07-08 14:27:53    阅读次数:118
xunsearch使用记录
部署,配置,有时间在记录error = 'not define XUNSEARCH_SDK_PATH'; return $this->error; } include XUNSEARCH_SDK_PATH . 'lib' . DIRE...
分类:其他好文   时间:2015-07-08 14:21:35    阅读次数:117
vs2012实测,数据类型及其空间大小
#include "stdafx.h"#include #include "common.h"#include "t4.h"typedef struct { long l; int i[5]; char c; double db;}S_DATA;int t4(void){ printf("size ...
分类:其他好文   时间:2015-07-08 14:18:01    阅读次数:100
c++中构造函数 、析构函数的作用域详解
我们知道,在c++中,析构函数是在函数作用域尾部执行析构函数,从而释放对象,但是有一种情况下,析构函数作用域发生变化,请看下面的例子,定义了一个Stock类,Stock类存放在stock.h中,主调用函数在stock.cpp中。 stock.h 1 #include 2 #inclu...
分类:编程语言   时间:2015-07-08 12:53:48    阅读次数:234
php接口数据加密、解密、验证签名代码实例
php接口数据加密、解密、验证签名 代码很简单,这里就不多废话了,直接奉上代码 <?php /** * 数据加密,解密,验证签名 * @edit http://www.lai18.com * @date 2015-07-08 **/ //header('Content-Type: text/xml; charset=utf-8'); include_once(dirn...
分类:Web程序   时间:2015-07-08 11:11:20    阅读次数:175
【c语言】调整数组使奇数全部都位于偶数前面
// 调整数组使奇数全部都位于偶数前面 // 输入一个整数数组,实现一个函数,来调整该数组中数字的顺序使得数组中所有的奇数位于数组的前半部分, // 所有偶数位于数组的后半部分。 #include #include void johh(int *p, int len) { int *q = p + len - 1; int temp; assert(p != NULL); w...
分类:编程语言   时间:2015-07-08 11:06:00    阅读次数:132
UVA 10010 Where's Waldorf?
题目大意:给定一个矩阵,里面是一些字母。要求找到指定字符串的位置,其中单词必须是一条直线(刚开始这里没看到 = =,英语是硬伤。)所以可以直接往八个方向搜索,不过这里只是往一个方向搜索(满足直线要求)。由于不区分大小写,搜索之前可以做个预处理,将小写字母全部转化成大写字母。 #include #include #include #include using namespace std;...
分类:其他好文   时间:2015-07-08 09:37:21    阅读次数:100
【C/C++】文件读写
C语言: 1.二进制文件写 #include void main() { int ar[10] = {12,23,34,45,56,67,78,89,90,100}; FILE *fp = NULL; //文件指针 fp = fopen("Text2.txt","w"); //打开...
分类:编程语言   时间:2015-07-08 09:36:37    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!