码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
c语言中字符串操作的工具类
?? 1.编写头文件 #define _CRT_SECURE_NO_WARNINGS //#pragmawarning(disable:4996) #include #include #include   struct CString {     char *p;        //保存字符串首地址     i...
分类:编程语言   时间:2014-08-03 23:27:26    阅读次数:557
链式栈
?? 1.编写头文件 #define datatype int struct statcknode {     int num;                 //编号     datatype data;           //数据     struct statcknode *pNext;//指针域 };   ...
分类:其他好文   时间:2014-08-03 23:25:46    阅读次数:285
有序链式队列
?? ?? 编写头文件 struct queue {     int num;            //代表数据     int high;           //优先级1111     struct queue *pNext;//存储下一个节点的地址 }; typedef  struct queue Q...
分类:其他好文   时间:2014-08-03 23:24:26    阅读次数:372
二叉树的映象
很自然想起来递归: 代码: #include #include using namespace std; typedef struct tree1{ int data; struct tree1 * lchild; struct tree1 * rchild; }Tree,* pTree; void createTree(pTree & p){ int temp ; scan...
分类:其他好文   时间:2014-08-03 23:23:58    阅读次数:267
我对CONTAINING_RECORD宏的详细解释
宏CONTAINING_RECORD的用处其实还是相当大的, 而且很是方便, 它的主要作用是: 根据结构体中的某成员的指针来推算出该结构体的指针! 下面从一个简单的例子开始说起: 我们定义一个结构体, 同时类型化:typedef struct{ int a; int b; ...
分类:其他好文   时间:2014-08-03 23:13:36    阅读次数:304
RAC 常用维护工具和命令(oracle 10g)
Oracle的管理可以通过OEM或者命令行接口。OracleClusterware的命令集可以分为以下4种:节点层:osnodes网络层:oifcfg集群层:crsctl,ocrcheck,ocrdump,ocrconfig应用层:srvctl,onsctl,crs_stat下面分别来介绍这些命令。...
分类:数据库   时间:2014-08-03 23:05:06    阅读次数:383
kruskal 算法模板
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2896#include #include #include struct node{ int u,v,w;}q[200001];int bin[500...
分类:其他好文   时间:2014-08-03 22:49:36    阅读次数:172
连接不上
#include#include#include#include#include#includeint main(){ int server_sockfd,client_sockfd; int server_len,client_len; struct sockaddr_in se...
分类:其他好文   时间:2014-08-03 18:00:35    阅读次数:208
POJ 3348
旋 转卡壳水题。直接使用旋转卡壳求距离。#include #include #include #include #include using namespace std;const int MAXN=50100;struct point { int x,y;}p[MAXN];int n;int st...
分类:其他好文   时间:2014-08-03 17:36:05    阅读次数:227
结构体指针内存——指针数组——字符串指针内存申请
前几天用的结构体,结构体内还包含有结构体指针和数组以及指向字符串的指针,发现自己对这方面的东西还很容易犯错,故现在讲其中容易出错的地方写出来,分享给大家也方便自己日后查看。 typedef struct { char name[50]; char job[50]; int age; int people_id; } peopleInfo; typedef struct...
分类:其他好文   时间:2014-08-03 15:21:35    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!