码迷,mamicode.com
首页 >  
搜索关键字:struct stat    ( 35365个结果)
golang json处理struct未导出成员
golang struct unexported field json 未导出 成员...
分类:Web程序   时间:2014-08-14 20:50:39    阅读次数:279
copy和mutableCopy到底是浅拷贝还是深拷贝?
请尊重原作者的辛苦劳动,转载请注明出处。 实践是检验真理的唯一标准。下面就让我们在实践中认识copy和mutableCopy的共同点和区别。 1.copy和mutableCopy的实现过程。 想要一个对象能实现copy首先要继承NSCopying的协议,然后实现+ (id)copyWithZone:(struct _NSZone *)zone,mutableCopy对应的是NSMutable...
分类:其他好文   时间:2014-08-14 20:36:49    阅读次数:158
Silverlight Color的颜色值
1.MainPage.xaml 2.MainPage.xaml.csthis.LayoutRoot.Background = SkinColor.GetTopBrush();3.SkinColor.csstatic public class SkinColor { stat...
分类:Web程序   时间:2014-08-14 19:56:59    阅读次数:230
hdu 2363
枚举加最短路#include #include #include #include using namespace std;#define N 105#define INF 0x7f7f7f7fstruct Height{ int low,high,dif;}H[N*N];struct Edg...
分类:其他好文   时间:2014-08-14 19:52:29    阅读次数:201
WPF中实现根据拼音查找汉字
1、WPF的一个触摸屏项目,需要输入姓名,但是屏幕不支持汉字输入,使用虚拟键盘不稳定,为了解决该问题特此进行处理。2、新建一个类转换类,里面初始化一个数组,数组包含拼音,以及拼音下的常用的汉字。3、根据拼音,对照出对应的汉字,然后在对汉字进行拆分,获取到单个汉字。例子如下: private stat...
分类:其他好文   时间:2014-08-14 19:45:39    阅读次数:173
S5PV210之led-bus模型 linux3.0.8驱动
led-bus模型:步骤一:驱动运行结果:从上图红色线可知,卸载led_dev失败原因是因为led_dev.c platform_device中没有加release()函数;所以正确的方法如下:在led_dev.c 中:static struct platform_device led_dev = ...
分类:系统相关   时间:2014-08-14 19:31:42    阅读次数:331
golang struct转map
struct转map package main import ( "fmt" "reflect" "time" ) type User struct { Id int64 Username string Password string Logintime time.Time } func Struct2Map(obj interface{}) map[...
分类:其他好文   时间:2014-08-14 17:16:19    阅读次数:241
Unix stat
Linux 下有stat命令,可以非常方便的得到一个文件的inode等信息。但是今天在Solaris下使用stat居然没有这个命令。不过没关系,我们可以自己写这个命令,比如:#include #include #include int main(int argc, char *argv[]){ .....
分类:其他好文   时间:2014-08-14 16:40:08    阅读次数:248
【编程题目】在 O(1)时间内删除链表结点
60.在 O(1)时间内删除链表结点(链表、算法)。题目:给定链表的头指针和一个结点指针,在 O(1)时间删除该结点。链表结点的定义如下:struct ListNode{int m_nKey;ListNode* m_pNext;};函数的声明如下:void DeleteNode(ListNode*....
分类:其他好文   时间:2014-08-14 15:56:18    阅读次数:148
CSU-ACM2014年校队选拔赛指导赛解题报告
?Problem A CSU 1065 贪心 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 1000010; 6 struct Node{ 7 int a,b; 8 bool...
分类:其他好文   时间:2014-08-14 13:11:08    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!