码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2015-04-07 11:39:39    阅读次数:123
C++产生固定范围内的固定数量的随机数
1 #include 2 #include 3 #include 4 using namespace std; 5 void knuth(int n, int m) 6 { 7 srand((unsigned int)time(NULL)); 8 for (int i = 0; i...
分类:编程语言   时间:2015-04-07 11:13:52    阅读次数:109
WPF常用方法,事件驱动和控件遍历
//初始化数据,默认选中第一项,事件驱动RadioButton btn = FuncClass.GetChildObject(this.stackPanel1, "btnname");if (btn != null){btn.IsChecked = true;btn.RaiseEvent(new ....
分类:Windows程序   时间:2015-04-07 09:42:06    阅读次数:193
为什么应该使用nullptr
转载地址:http://www.stroustrup.com/bs_faq2.html#null为什么应该使用nullptr呢,以下是c++之父的解释:1downvoteHereisBjarneStroustrup‘swordings,InC++,thedefinitionofNULLis0,sothereisonlyanaestheticdifference.Iprefertoavoidmacros,soIuse0.AnotherproblemwithNULLi..
分类:其他好文   时间:2015-04-07 07:23:20    阅读次数:226
字符串拷贝的简单C语言实现
#include<stdio.h>voidmain(){ chara[]="123"; charb[10]; char*s,*p; s=a; p=b;//取s的值,s自加,取p的值,p自加,将old_s的值赋给old_p while(*p++=*s++); s=NULL; p=NULL; printf("%s\n",b);}
分类:编程语言   时间:2015-04-07 07:19:45    阅读次数:168
Linux 特殊命令--dd 及Linux补丁制作
一、dd命令详解:官方解释:convertandcopyafile---转换并复制文件dd是Linux/UNIX下的一个非常有用的命令,作用是用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换语法:dd[OPERAND]...ddOPTION参数:if=FILEreadfromFILEinsteadofstdin源文件,用于指定数据流来源of..
分类:系统相关   时间:2015-04-07 07:19:16    阅读次数:208
Swap Nodes in Pairs
关键是想好swap 的function怎么写我的做法是输入输出两支点pre& end,中间的两个node swappublic class Solution { public ListNode swapPairs(ListNode head) { if(head==null ||...
分类:其他好文   时间:2015-04-07 07:10:45    阅读次数:128
JAVA中Integer对象的引用
JAVA中没有指针一说,但也有引用的概念。这里要说的主要是Integer是不是同一个对象。 1、先看一段代码: public static void main(String[] args){ Integer a1 = 100; Integer b1 = a1;//另一种也可以b1=100 Field field = null; try { field = a1.getCl...
分类:编程语言   时间:2015-04-07 00:47:51    阅读次数:162
mvc4 ajax.beginform表单验证
@{ Layout = null;}@model MvcApplication1.Models.User@using (Ajax.BeginForm("create", "user", new AjaxOptions{ UpdateTargetId = "bform", HttpM...
分类:Web程序   时间:2015-04-07 00:32:31    阅读次数:261
Rickie的软件测试学习笔记-第四周
本周预期是分析字符串转换数值类型时候发生的异常。在C#中:int.Parse(String str):这种方法是将数字内容的字符串转换为int类型。如果字符串的内容为Null ,则抛出ArgumentNullException异常;如果字符串内容不是数字,则抛出FormatException异常。使...
分类:其他好文   时间:2015-04-06 21:28:05    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!