码迷,mamicode.com
首页 >  
搜索关键字:struct tm    ( 20030个结果
poj 2632
题意:一个房间由m*n个方块组成 每个机器人占据一个方块 这些机器人能够移动 问 这些机器人的移动动作全部完成后 会不会发生冲撞事件解题策略:简单的模拟题目#include#includeusing namespace std;struct Node{ int x,y; int dir...
分类:其他好文   时间:2014-06-07 06:03:49    阅读次数:205
Go数据结构之Stack
Stack 一个简单确很有用的数据结构:FILOpackage Stackimport ( "errors" "fmt")const ( defaultLength=100)type Stack struct{ top int size int element [...
分类:其他好文   时间:2014-06-07 05:14:42    阅读次数:211
boost::interprocess::shared_memory_object(1)(基本类型)
#include #include struct pos2d{ int x; int y;};using namespace std;int main(){ //boost::interprocess::shared_memory_object类是按照单个字节的方式读写共享内存,用...
分类:其他好文   时间:2014-06-07 03:57:20    阅读次数:277
类型强转和字节对齐
当一个较少字节对齐类型的指针强转为一个较多字节对齐的指针类型时,这样有些时候会产生问题。 在arm的平台上,这个问题比较明显,在x86平台上运行后没这个问题typdef struct{int addr;int rdda;}Test_t;int main(){short int a;short ...
分类:其他好文   时间:2014-06-07 03:40:59    阅读次数:301
text label overlap probelm
常见的解决方法有三种:1. 使用wordcloud#install.packages(c("wordcloud","tm"),repos="http://cran.r-project.org")library(wordcloud)library(tm)wordcloud("May our child...
分类:其他好文   时间:2014-06-07 02:47:09    阅读次数:348
iOS下单例模式实现(objective-c arc gcd)
单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例。这里主要介绍下在arc下,利用gcd实现单例。第一步:声明一个静态实例staticSoundTool *_instance;第二步:重写初始化方法+ (id)allocWithZone:(struct _NSZone *)zo...
分类:移动开发   时间:2014-05-29 02:49:34    阅读次数:367
UITableView属性和方法
1、初始化一个UITableView1 - (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style1 struct CGRect {2 CGPoint origin;3 CGSize size;4 };5 typedef...
分类:其他好文   时间:2014-05-29 02:42:20    阅读次数:254
LeetCode --- Add Two Numbers
题目链接说来算是个基础题目,可是还是各种CE,各种WA,基础还是不扎实。附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *ne...
分类:其他好文   时间:2014-05-28 23:56:38    阅读次数:382
通过原生js的ajax或jquery的ajax获取服务器的时间
在实际的业务逻辑中,经常是与时间相关的,而前端能获得的时间有两个:客户端的时间,服务器的时间.客户端时间通过 javascript中的Date对象可以获取,如Java代码vardt=newDate();vartm=dt.getTime();那么tm就是客户端的时间,另外也可以通过对应的getFull...
分类:Web程序   时间:2014-05-28 03:23:30    阅读次数:364
学习笔记之gethostbyaddr函数
刚才学了gethostbyname函数,这个gethostbyaddr函数的作用是通过一个IPv4的地址来获取主机信息,并放在hostent结构体中。#include struct hostent * gethostbyaddr(const char * addr, socklen_t len,.....
分类:其他好文   时间:2014-05-28 01:46:42    阅读次数:331
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!