码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
define a class for a linked list and write a method to delete the nth node.
1、问题 define a class for a linked list and write a method to delete the nth node. 2、算法 template struct Node{         C content ;         Node* next ; } template class List{ private:...
分类:其他好文   时间:2014-09-03 13:10:36    阅读次数:189
android 利用cmdline,将参数从preloader传递到kernel
以定义参数 cus_param 为例,int型变量。   1. Preloader部分 Platform.h(mediatek\platform\[$platform]\preloader\src\drivers\inc\platform.h) 在如下结构体中加cus_param变量,如果是char型,请注意4byte对其: typedef struct {     u32 magic...
分类:移动开发   时间:2014-09-03 13:06:36    阅读次数:324
SYSU 1686 线段树 lazy
区间更新+lazy I 操作 l-r 区间+c C操作 l-r区间的最大值,并把最大值删除 线段树再加个记录最大值的位置即可 #include "stdio.h" #include "string.h" int ans,mark; struct node { int l,r,Max,mark,lazy; }data[400010]; void ...
分类:其他好文   时间:2014-09-03 11:21:06    阅读次数:221
大端小端影响位域的存放
struct Test{ unsigned short int a:5;//a1a2a3a4a5 unsigned short int b:5;//b1b2b3b4b5 unsigned short int c:6;//c1c2c3c4c5c6 }; 首先排排好 低地址----高地址 a1a2a3a...
分类:其他好文   时间:2014-09-03 11:12:57    阅读次数:292
二叉树深度、平衡、相等、求遍历
#include #include #include using namespace std;struct TreeNode { struct TreeNode* left; struct TreeNode* right; char elem; ...
分类:其他好文   时间:2014-09-03 00:08:45    阅读次数:285
codeforces 430A Points and Segments (easy)(理解能力有待提高……)
题目//终于看懂题目了,,,,//一条线段里面不是每个坐标上都有要染色的点,所以为了满足条件,只能考虑那些给出坐标的点//所以就要排序一下了,不能直接根据坐标0 1 0 1……#include #include #include using namespace std ;struct tt{ ...
分类:其他好文   时间:2014-09-02 22:35:05    阅读次数:257
第三方
#include #include #include #include using namespace std;typedef struct node{ int x,y,ans,num,pre; friend bool operatorb.ans; }} st;st qq[1000...
分类:其他好文   时间:2014-09-02 21:20:55    阅读次数:283
sdibt 1244类似于拓扑排序
参考潘神的博客:http://blog.csdn.net/mypsq/article/details/39005991#include #include #define N 30 struct node { int x,y,xx,yy; }f[N],ff[N]; int link[N],visit[N]; int main() { int n,m,i,j,k,cou,index,cnt;...
分类:其他好文   时间:2014-09-02 19:54:35    阅读次数:236
效率测试-----时间函数(毫秒级)
测试机器处理效率,或者做效率优化的适合: 1 #include 2 #include 3 void getCurrentTime(char* buf) 4 { 5 struct timeval tv; 6 7 struct timezone tz; 8 9...
分类:其他好文   时间:2014-09-02 19:43:05    阅读次数:205
有头结点的链表操作
#include#include using namespace std;struct Node{ int data; Node *next;};//没有头结点的插入新节点Node* AddNode(Node *head,int num)//如果是void 类型的 那么head要用指向指...
分类:其他好文   时间:2014-09-02 19:34:45    阅读次数:217
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!