码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
循环队列
//// main.cpp// circleQueue//// Created by zhou on 14-6-19.// Copyright (c) 2014年 zhou. All rights reserved.//#define Max 50typedef struct ...
分类:其他好文   时间:2014-06-28 18:54:47    阅读次数:171
POJ 3070 Fibonacci(矩阵快速幂)
题目链接题意 : 用矩阵相乘求斐波那契数的后四位。思路 :基本上纯矩阵快速幂。 1 //3070 2 #include 3 #include 4 #include 5 6 using namespace std; 7 8 struct Matrix 9 {10 int v[2][2...
分类:其他好文   时间:2014-06-28 17:48:14    阅读次数:214
c语言指针
例子:struct context { uint edi; uint esi; uint ebx; uint ebp; uint eip;}; ...p->context = (struct context*)sp;p->context->eip = (uint)forkret;结构体成...
分类:编程语言   时间:2014-06-28 17:26:51    阅读次数:172
研碎bst
bst :binary search tree(二叉搜索树)对于树中的每个节点n,左子树中的所有节点的关键字都小于节点n的关键字,右子树中所有节点的关键字都大于节点n的关键字struct node{ int key; struct node *left; //左节点 s...
分类:其他好文   时间:2014-06-28 17:06:24    阅读次数:186
Select单进程非阻塞TCP echo服务器
Select单进程非阻塞TCP echo服务器1. select 描述 #include #include int select( int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset, const struct...
分类:其他好文   时间:2014-06-28 15:52:47    阅读次数:135
将日期和时间作为 struct tm型的值直接向二进制文件进行读写
#include #include char data_file[]="D:\\%\\datetime.dat";void get_data(void){ FILE *fp; time_t t; if((fp = fopen(data_file,"r")) == NULL) printf("本程序第...
分类:其他好文   时间:2014-06-28 15:25:41    阅读次数:254
C语言——结构体数组的使用案例(如何判断两个矩形是否相交,其中一个是否包含在另外一个里面,点是否在矩形中)
Rect.hstruct CPoint { float x; float y;};typedef struct CPoint CPoint;struct CSize { float width; float height;};typedef struct CSize CSiz...
分类:编程语言   时间:2014-06-28 15:10:15    阅读次数:381
Selenium介绍
基于selenium的自动化测试,华为已经做了两代了,目前是做到SmartGUI2.0,基于他们自己的AutoSpace平台。不过目前支持的貌似只有IE和火狐(火狐3.6)。控件录制支持ID,Name属性,Struct类型,Xpath。个人觉得已经相当成熟了,AutoSpace是集成商公司测试工具部...
分类:其他好文   时间:2014-06-28 14:51:59    阅读次数:160
HDU 1171
母函数简单题 1 #include 2 #include 3 using namespace std; 4 5 const int MAX=130000; 6 int c1[MAX],c2[MAX]; 7 8 struct { 9 int val,num;10 }thing[55];...
分类:其他好文   时间:2014-06-20 16:07:13    阅读次数:164
C/C++中判断某一文件或目录是否存在
1 //1.C++很简单的一种办法: 2 #include 3 #include 4 using namespace std; 5 #define FILENAME "stat.dat" 6 int main() 7 { 8 fstream _file; 9 _file.o...
分类:编程语言   时间:2014-06-20 15:45:52    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!