码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
c语言各类问题 代码
定义一个结构体,有两个成员变量,一个整型的n,一个字符型的c,利用结构体类型声明一个具有5个元素的数组,并随机初始化,根据成员变量n进行从小到大排序,然后输出 冒泡排序然后 在输出结构体#includestruct d{int x;char y;};int main(void){struct d a...
分类:编程语言   时间:2014-07-13 23:50:55    阅读次数:410
STL源码之vector
STL源码之vector1. SGI的vectorSGI stl vector继承子一个基类:template > class vector : protected _Vector_base在基类中定义了基本的一些操作,并且封装了了vector所需要的基本的三个指针:struct _Vector_....
分类:其他好文   时间:2014-07-13 23:19:35    阅读次数:188
通过POI读取word文件
POI读取word只能读取内容不能读取格式tm-extractors-0.4.jarimport java.io.FileInputStream; import org.textmining.text.extraction.WordExtractor; public class Test { ...
分类:其他好文   时间:2014-07-13 23:12:30    阅读次数:248
注意链表的尾部
今天做了Leetcode上面一道题Remove Duplicates from Sorted List II,要去去除链表中重复的节点,代码如下 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * ...
分类:其他好文   时间:2014-07-13 21:23:10    阅读次数:160
APUE学习笔记:第四章 文件和目录
4.1 引言本章将描述文件的特征和文件的性质4.2 stat、fstat和lstat函数#includeint stat(const char *restrict pathname,struct stat *restrict buf);int fstat(int filedes,struct sta...
分类:其他好文   时间:2014-07-13 20:36:36    阅读次数:283
Trie树
字典树查询 #include #include #include using namespace std; const int maxn = 30; typedef struct Trie{ int v; Trie *next[ maxn ]; }Trie; Trie root; void CreateTrie( char *str ){ int len = strlen( st...
分类:其他好文   时间:2014-07-13 17:17:39    阅读次数:336
关于有继承modelDriven接口的action的ajax调用传入参数
关于有继承modelDriven接口的action的ajax调用传入参数...
分类:其他好文   时间:2014-07-13 16:28:44    阅读次数:156
ajax 如何使用不同namespace的action
ajax 如何使用不同namespace的action...
分类:其他好文   时间:2014-07-13 16:23:32    阅读次数:111
信号量机制中的DOWN操作与UP操作详解
DOWN操作:linux内核中,对信号量的DOWN操作有如下几种: void down(struct semaphore *sem); //不可中断 int down_interruptible(struct semaphore *sem);//可中断 int down_killable(struct semaphore *sem);//睡眠的进程可以因为受到致命信号而被唤醒,中断获取信号量...
分类:其他好文   时间:2014-07-13 16:21:36    阅读次数:501
链表操作时巧用指针的指针
比如在插入有序链表的过程中,一般情况下要使用俩指针来遍历,而后还要判断是否在第一个位置插入;利用指针的指针后不需要另外考虑这种特殊情况。 代码: #include #include struct node{ int data; struct node *next; } *head; //sorted link-list void insert(struct no...
分类:其他好文   时间:2014-07-13 15:38:13    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!