<?php$paper[] = "Copier";$paper[] = "Inkjet";$paper[0] = "Copier";$paper[1] = "Inkjet";print_r($paper);for ($j = 0 ; $j < 4 ; ++$j) echo "$j: $paper[$j]<br>";$paper['copier'] = "Copier & Multipurpose";$paper['ink Read More
posted @ 2013-02-09 00:41 findumars Views(336) Comments(0) Diggs(0)
<?php$names = fix_names("WILLIAM", "henry", "gatES");echo $names[0] . " " . $names[1] . " " . $names[2];function fix_names($n1, $n2, $n3){ $n1 = ucfirst(strtolower($n1)); $n2 = ucfirst(strtolower($n2)); $n3 = ucfirst(strtolower($n3)); return array Read More
posted @ 2013-02-09 00:26 findumars Views(1823) Comments(0) Diggs(0)
<?phpinclude("library.php");include_once("library.php");require_once("library.php");echo "Hello world";$username = "Fred Smith";echo $username;echo str_repeat("Hip ", 2); // Repeat stringecho strtoupper("hooray!"); // String to Read More
posted @ 2013-02-09 00:15 findumars Views(490) Comments(0) Diggs(0)
WIN32的时空观摘自第三章,写的真好,只可惜不知道为什么没有把书写完,唉!真是字字珠玑:1. 在Windows下,同一程序可以同时有两个以上的副本在运行,每一个运行的程序副本就是一个进程。更确切地说,任何程序的一次运行就产生一个任务,而每个任务就是一个进程。一个典型的程序是由一个EXE文件或一个E... Read More
posted @ 2013-01-25 20:09 findumars Views(387) Comments(0) Diggs(0)
摘自第一章,写的真好,只可惜不知道为什么没有把书写完,唉!我们都知道,用下面的语句可以构造一个最简单对象: AnObject := TObject.Create; 编译器将其编译实现为: 用TObject对应的VMT为依据,调用TObject的Create构造函数。而在Create构... Read More
posted @ 2013-01-25 16:33 findumars Views(1339) Comments(0) Diggs(0)