码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
结构体位制详解 -- C
#include #include #include //基本概念 /* struct _M { (1) 类型 参数名 : 占位大小; (2) 类型 : 占位大小; } (1) 类型 -- int,unsigned(32位),short,char。 参数名 -- 同个结构体里面不能重名参数。 占位大小 -- 不能大于类型最最大位数。 (2) 一般用于寄存器中保留位 */ //占位大小问题: /* err -- int类型是3...
分类:其他好文   时间:2014-07-31 13:24:26    阅读次数:337
ePass.CreateFile
javascript和vbscript中没有结构体Struct,ePass的ActiveX对象中把各个参数都展开了,官方文档只给出了对应的代码,没有给出相应的数字,示例代码中却都是数字,其VC代码中有对应的定义,如下ePass.CreateFile(IFlags, ulID, ulFileSize,...
分类:其他好文   时间:2014-07-31 13:00:36    阅读次数:147
php文件操作
文件计数器;将点击该网页的次数记录在文件中,类似C++; 1 '; 3 $stt = stat('.\test.html');//打印该文件的属性细节 4 print_r($stt);//返回为一个数组所以用print_r 5 echo ''; 6 7 if(!@$...
分类:Web程序   时间:2014-07-31 12:56:16    阅读次数:349
红黑树
红黑树数据结构#ifndef __RED_BLACK_TREE_H#define __RED_BLACK_TREE_H#define RED 1#define BLACK 0typedef struct Red_Black_Node{ int id; int color; int ...
分类:其他好文   时间:2014-07-31 12:49:56    阅读次数:165
Binary Tree Preorder Traversal
二叉树的前序遍历递归实现/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : v...
分类:其他好文   时间:2014-07-31 12:44:46    阅读次数:188
Binary Tree Postorder Traversal
二叉树的后序遍历递归实现/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : v...
分类:其他好文   时间:2014-07-31 12:30:16    阅读次数:224
LeetCode "Combination Sum II"
The only difference with version I is: one number can only be used once:class Solution {public: vector > ret; struct Rec { Rec() : sum...
分类:其他好文   时间:2014-07-31 05:22:25    阅读次数:239
UVa10815_Andy's First Dictionary(小白书字符串专题)
解题报告 思路: 字典树应用,dfs回溯遍历字典树 #include #include #include using namespace std; struct node { int v; node *next[26]; }; int l,m,cnt; char str[100],ch[100],dic[5500][100]; node *newnode() { ...
分类:其他好文   时间:2014-07-31 00:05:35    阅读次数:283
CII-原子
#ifndef ATOM_INCLUDED #define ATOM_INCLUDED extern int Atom_length(const char *str); extern const char *Atom_new(const char *str, int len); extern const char *Atom_string(const char *str); extern con...
分类:其他好文   时间:2014-07-31 00:04:09    阅读次数:289
浅谈linux内核栈(基于3.16-rc4)
在3.16-rc4内核源码中,内核给每个进程分配的内核栈大小为8KB。这个内核栈被称为异常栈,在进程的内核空间运行时或者执行异常处理程序时,使用的都是异常栈,看下异常栈的代码(include/linux/sched.h):1 union thread_union {2 struct thre...
分类:系统相关   时间:2014-07-30 23:31:05    阅读次数:411
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!