码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
【POJ】3630 Phone List
静态字典树。 1 #include 2 #include 3 #include 4 5 #define MAXN 10005 6 7 typedef struct Trie { 8 bool v; 9 Trie *next[10];10 Trie() {11 ...
分类:其他好文   时间:2014-06-28 09:39:33    阅读次数:171
linux字符设备驱动
本篇文章记录字符设备的驱动框架:1.定义cdev接口体和class结构体#define HELLO_CNT 2static int major = 0;//主设备号为0,需要让系统自动生成主设备号static struct cdev hello_cdev;static struct class *c...
分类:系统相关   时间:2014-06-27 22:36:58    阅读次数:423
【POJ】1451 T9
DFS+字典树。 1 #include 2 #include 3 #include 4 5 typedef struct Trie { 6 int v; 7 Trie *next[26]; 8 } Trie; 9 10 Trie root; 11 int ...
分类:其他好文   时间:2014-06-27 14:32:44    阅读次数:183
iphone获取当前流量信息
通过读取系统网络接口信息,获取当前iphone设备的流量相关信息,统计的是上次开机至今的流量信息.?1. [代码][C/C++]代码 -(void)checkNetworkflow{ struct ifaddrs *ifa_list = 0, *ifa; if (getifaddrs(&ifa...
分类:其他好文   时间:2014-06-27 11:46:05    阅读次数:223
【POJ】2503 Babelfish
字典树简单题。 1 #include 2 #include 3 #include 4 5 typedef struct Trie { 6 Trie *next[26]; 7 char str[15]; 8 } Trie; 9 10 Trie root;11 12 void c...
分类:其他好文   时间:2014-06-27 11:32:27    阅读次数:172
C++链表
#include #include using namespace std;class Student{public: Student (char *name); ~Student();public: char name[30]; Student *next; stat...
分类:编程语言   时间:2014-06-27 11:03:00    阅读次数:199
ural 1076 Trash 二分图最大权匹配(费用流实现)
统计每种垃圾的总和,若将K种垃圾倒入第F个垃圾桶,那么花费就是K-F(k)  (自己已经有的垃圾不用倒)。 然后就是简单的二分图建图。 #include #include #include #include using namespace std; #define MAXN 1000 #define MAXM 1000000 #define INF 0x3f3f3f3f struct ...
分类:其他好文   时间:2014-06-27 07:47:46    阅读次数:205
PKU 3613 Cow Relays (指定路径条数的最短路)
题意:N,T,S,E:给你T条边,每条边两端都有编号和权值,问从S走到E允许走N条边,求最短路。 foyld加矩阵快速幂思想。 注意要把边离散 #include #include #include #include using namespace std; #define M 303 #define inf 0x3fffffff struct node { ...
分类:其他好文   时间:2014-06-27 07:39:23    阅读次数:178
关于DBA_TAB_MODIFICATIONS数据字典中数据无法查询的问题
今天收到一个客户请求,客户在查数据字典时,发现下面的现象。SQL>selecttable_namefromdba_tab_modificationswheretable_name=‘STAT_TABLE‘;norowsselectedSQL>selecttable_namefromdba_tab_modificationswheretable_namelike‘%STAT_TABLE‘;TABLE_NAME-----------------..
分类:数据库   时间:2014-06-27 06:57:16    阅读次数:319
centos6.5 bash基础命令2
@@@第三天第二段@@stat命令:查看文件的元数据信心!InodestatFILE...bash文本编辑器编辑器:进行文本内容修改的程序行编辑器:sed全屏编辑器:nano,vi,vim@@nanoFILE...用户和权限管理:1、用户是什么?2、没有用户计算机也可以正常运行用户:用户就是计算机系统按需对操作人员..
分类:其他好文   时间:2014-06-27 06:30:06    阅读次数:366
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!