上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 49 下一页
摘要: 函数a在运行时,在调用函数b过程中,在运行被调用函数b之前,系统需要先完成3件事: 1,将所有形参,返回地址(调用函数中,被调用函数的下一条语句的地址)等信息,传递给被调用函数保存. 2,为被调用函数的局部变量分配存储区域. 3,将控制转移到被调用函数的入口.而从被调用函数返回给调用函数... 阅读全文
posted @ 2014-08-22 14:20 wonkju 阅读(146) 评论(0) 推荐(0) 编辑
摘要: C中,整型有: characters,shortinteger,integer,longinteger 看起来,longinteger要比shortinteger大,但是这也是不一定的. shortinteger最少有16位,而longinteger最少要32位.但是,要设计默认的intege... 阅读全文
posted @ 2014-08-22 14:18 wonkju 阅读(160) 评论(0) 推荐(0) 编辑
摘要: In C, array arguments behave as though they are passed by reference, and scalar variables and constants are passed by value (like var parameters and... 阅读全文
posted @ 2014-08-22 14:17 wonkju 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1,进程1)目的:为了使多个程序的并发执行,以改善资源的利用率和系统的吞吐量.2,线程1)目的:为了减少程序并发执行时系统所付出的额外开销. 阅读全文
posted @ 2014-08-22 14:15 wonkju 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 利用反证法证明:对于所有实数x和y,如果x+y2,则x或者y1.答:假定x和y均为实数,然后假定结论为假,即¬(x≥1y≥1)为真.根据DeMorgan定律,¬(pνq)≡¬pΛ¬q,得¬(x≥1νy≥1)≡¬x≥1Λ¬y≥1≡x≤1Λy≤1.使用前面的定理,将不等式相加,x+y<1+1=2堆出了矛... 阅读全文
posted @ 2014-08-22 14:12 wonkju 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 一,初步设想 让两个进程实现同步与互斥访问临界资源。 伪代码:turn 。。0 1P0while turn=1 do{nothing}turn := 1P1while turn=0 do{nothing}turn := 1问题: turn 为0时,进程P0在进入临界区前(在临界区外),如果发生... 阅读全文
posted @ 2014-08-18 13:52 wonkju 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) { 2 String s = "你好"; 3 String cn = ""; 4 System.out.println("src: " + s); 5 ... 阅读全文
posted @ 2014-07-19 10:14 wonkju 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 下载 服务端:VisualSVN Server和客户端:TortoiseSVNcmd,并cd 到VisualSVN Server安装目录下的bin目录.新建库:1 svnadmin create H:\svn_pro修改conf目录下的passwd,添加 : user=password,如1 ###... 阅读全文
posted @ 2014-07-18 16:37 wonkju 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 很多人的解释都不一样, 我碰到的问题是,开辟的内存空间小于操作的内存空间.也就是说,我free的内存越界了.这是我开辟链表结构体内存的代码: 1 PNODE Create() { 2 int len; //total count of nodes to be created. 3 ... 阅读全文
posted @ 2014-07-17 07:33 wonkju 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: CharacterASCIIRepresentationASCIIValueEscape SequenceNewlineNL (LF)10 or 0x0a\nHorizontal tabHT9\tVertical tabVT11 or 0x0b\vBackspaceBS8\bCarriage ret... 阅读全文
posted @ 2014-07-11 21:20 wonkju 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 49 下一页