$arr = file("counter.txt") ; $count = (int)$arr[0] ; $fp = fopen("counter.txt", "w") ; if ( $fp != FALSE ) { flock ($fp,2); fputs($fp, ++$count) ; flock ($fp,3); fclose($fp); } ?>
Update: 2003/12/18
|
³Ì·s®ø®§
|
¸¹¥~, ¸¹¥~!!^^"
"°ß¤@"¸Édemo®É¶¡¦b1/16¬P´Á¤¤¤¤È12:00~2:00, ¦aÂI¸ê°T¨tÀ]R505,
¤§«á´N¨S¾÷·|°Õ...½Ð¦n¦n§â´¤...
½Ðn¸ÉDemoªº¦P¾Ç¥ý¼g«Hµ¹"²ø¥ú®x"§U±Ð¬ù½T©wªº®É¶¡, §_«h§U±Ð´N¤£²z§AÌÅo~~
1/14¬P´Á¤T·|±N¦³¥æ §@·~¤@¤G ªº¦W³æ¦C¦bºô¶¤W, ªñ´Á½Ð¦h¤Wºô¬d¬Ý...
¦U¦ì¦P¾ÇY¦b°õ¦æ½d¨Òµ{¦¡®Éµo¥Í§ä¤£¨ì.dllÀÉ,
½Ð®Ú¾Ú¥H¤U¨BÆJ°õ¦æ
1.¨ì¡uProject¡v->¡uSetting¡v¡A¦b¥ª¤âÃä¿ï¾Ü GoShared¡A¥k¤âÃä¿ï¾Ü Link ¡A¦b
Output File Name ªº¦a¤è¡A§ï¦¨ Debug/GoShared.dll
2.¨ì¡uBuild¡v->¡uSet Active Configuration¡v¡A¥ý¿ï¾Ü GoShared -- Debug¡AµM«á
Build¡C
3.¨ì ¡uTools¡v-> ¡uOptions¡v¡A¸Ì±ªºDirectiories¸Ì¡A·s¼W¤@Ólibraryªº¦ì§}¨ì
GoServer\GoShared\Debug¡C·s¼W¤@Óinclude fileªº¦ì§}¨ìGoServer\GoShared¡C
4.¦A¨Ó¤@¼Ë¬O¡uSet Active Configuration¡v¡A¿ï¾Ü GoServer -- Debug µM«á
Build¡C
5.§âGoShared\Debug\ ªº .dll copy ¨ì GoServer\Debug ¤U§Y¥i¡C
¤w¦³§@·~¤@, deadline¬°12/1¡C
|
½Òµ{¤º®e
|
±Â½Ò±Ð®v¡G´öÄ£¤¤±Ð±Â
±Â½Ò®É¶¡¡G¬P´Á¤@ 678 ¸` ¤U¤È 2:20 ~ 5:10
±Â½Ò¦aÂI¡G¸ê°T¨tÀ]¤@¼Ó 107 ±Ð«Ç
½Òµ{§U±Ð¡Gù°ûµX maggie@cmlab.csie.ntu.edu.tw, ²ø¥ú®xlocking@cmlab.csie.ntu.edu.tw
«ü©w½Ò¥»¡GµL
½Òµ{n¨D¡G
°Ñ¦Ò®Ñ¥Ø¡G
---²`¤J²L¥X MFC, ²Ä¤Gª©, Using VC5.0 and MFC4.2 «J«T³ÇµÛ, 1997,
ªQ±^
---Programming Windows with MFC
---Microsoft Visual C++ 6.0 µ{¦¡¶}µo¤â¥U, ªQ±^, ³¯«Â§Óµ¥Ä¶, Beck Zaratian.
---²`¤J Visual C++ 4.0, D. J. Kruglinski µÛ, 1996, «J«T³ÇĶ, ùÖ®p
---Programming Microsft Visual C++, 5th Ed., D.J.Kruglinski, G. Shepherd, S.
Wingo
---MSVC++ µ{¦¡³]p«ü«n, ²Ä¤ª©, ªL¾Ç»õµ¥Ä¶, ªQ±^
°Ñ¦Ò®Ñ¥Ø¡G[¤Jªù] Inside COM Microsoft Press
°Ñ¦Ò®Ñ¥Ø¡G[¶i¶¥] COM ¥»½è½× Essential COM ùÖ®p
°Ñ¦Ò®Ñ¥Ø¡GATL COM µ{¦¡³]p ùÖ®p
|
2003¦~½d¨Ò
|
| 2003 ¦~ 09 ¤ë 22 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
| 2003 ¦~ 09 ¤ë 29 ¤é¡G | ½d¨Ò¤@ |
| 2003 ¦~ 10 ¤ë 06 ¤é¡G | ½d¨Ò¤@ |
| 2003 ¦~ 10 ¤ë 13 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T |
| 2003 ¦~ 10 ¤ë 20 ¤é¡G | ½d¨Ò¤@ Regular Expression Component Library |
| 2003 ¦~ 10 ¤ë 27 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
| 2003 ¦~ 11 ¤ë 03 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T ½d¨Ò¥| GoServer §@·~½d¨Ò |
| 2003 ¦~ 11 ¤ë 24 ¤é¡G | ½d¨Ò¤@ |
| 2003 ¦~ 12 ¤ë 08 ¤é¡G | ´Á¥½±MÃD½d¥» ½d¨Ò¤G |
| 2003 ¦~ 12 ¤ë 15 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤GDBuffer |
| 2003 ¦~ 12 ¤ë 22 ¤é¡G | ½d¨Ò¤@MThread |
|
2002¦~½d¨Ò
|
| 2002 ¦~ 09 ¤ë 30 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T |
| 2002 ¦~ 10 ¤ë 07 ¤é¡G | ½d¨Ò¤@ |
| 2002 ¦~ 10 ¤ë 14 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T ½d¨Ò¥| |
| 2002 ¦~ 10 ¤ë 21 ¤é¡G | ´Á¤¤§@·~ªº½d¨Òµ{¦¡ |
| 2002 ¦~ 10 ¤ë 28 ¤é¡G | ½d¨Ò¤@ |
| 2002 ¦~ 11 ¤ë 04 ¤é¡G | ½d¨Ò¤@ |
| 2002 ¦~ 11 ¤ë 11 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
| 2002 ¦~ 11 ¤ë 18 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T ½d¨Ò¥| |
| 2002 ¦~ 11 ¤ë 25 ¤é¡G | ½d¨Ò¤@ |
| 2002 ¦~ 12 ¤ë 02 ¤é¡G | CODE |
| 2002 ¦~ 12 ¤ë 09 ¤é¡G | ½d¨Ò¤@ |
| 2002 ¦~ 12 ¤ë 23 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
|
2001¦~½d¨Ò
|
| 2001 ¦~ 10 ¤ë 08 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T |
| 2001 ¦~ 10 ¤ë 15 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
| 2001 ¦~ 10 ¤ë 22 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T ½d¨Ò¥| |
| 2001 ¦~ 10 ¤ë 29 ¤é¡G | ½d¨Ò¤@ §@·~¤@½d¨Ò |
| 2001 ¦~ 11 ¤ë 05 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T ½d¨Ò¥| ½d¨Ò¤ |
| 2001 ¦~ 11 ¤ë 12 ¤é¡G | ½d¨Ò¤@ |
| 2001 ¦~ 11 ¤ë 26 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤@ |
| 2001 ¦~ 12 ¤ë 3 ¤é¡G | OCX½d¨Ò¤@ OCX½d¨Ò¤G OCX½d¨Ò¤T OCX½d¨Ò¥| |
| 2001 ¦~ 12 ¤ë 10 ¤é¡G | ½d¨Ò¤@ |
| 2001 ¦~ 12 ¤ë 17 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
| 2001 ¦~ 12 ¤ë 24 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G |
| 2001 ¦~ 12 ¤ë 31 ¤é¡G | ½d¨Ò¤@ ½d¨Ò¤G ½d¨Ò¤T ½d¨Ò¥| ½d¨Ò¤ |
| 2002 ¦~ 01 ¤ë 07 ¤é¡G | ½d¨Ò¤@ |
|
½Òµ{§@·~
|
2003¦~´Á¥½§@·~±MÃD
1. Based on the Go sample, complete a neworked GO game system.
2. The completed system should consists of three parts:
Part1: Sever Program.
¡@¡@It should allow many go games to run simultaneously.
¡@¡@It should allow a client to post to find another player.
Part2: Management Program.
¡@¡@It should be able to list all running go games, and all clients seeking a partner.
Part3: Client Program.
¡@¡@It has two forms with identical functionality.
¡@¡@One is a standalone .exe form.
¡@¡@Another is the .ocx form to run under browsers.
¡@¡@The client program should have a user interface to play and view the game.
1. Make reference to ProjOne to learn about "Subclassing."
2. Start with ProjTwo.
3. Make a nice looking ICON for ProjTwo.
4. Make a class CSpreadCtrl that is inherited from CListCtrl.
5. Add spreadsheet functions to CSpreadCtrl.
6. Subclassing CListCtrl object IDC_LIST_SPREAD with an CSpreadCtrl object.
7. On each cell of the spread sheet, there are properties associated with it.
Property 1: Syntax
You should use Regular Expression to define the permitable string syntax.
You should make an editor such that only permitable strings are entered.
Property 2: Expression
The value of a cell is a combination of other cells. You should define the grammar of the rules and use Regular Expression to parse rules. Each cell may
have its own rule.
2002¦~´Á¤¤§@·~°Ñ¦Ò:
ÃD¥Ø¨Ì·Ó®y¸¹§À¼Æ¤À°t¡G
¶H´Ñµ{¦¡¡G¥½§À¬° 1,5,9 ¸¹ªº¦P¾Ç
³ò´Ñµ{¦¡¡G¥½§À¬° 2,6,0 ¸¹ªº¦P¾Ç
¦è¬v´Ñµ{¦¡¡G¥½§À¬° 3,7 ¸¹ªº¦P¾Ç
¾ôµPµ{¦¡¡G¥½§À¬° 4,8 ¸¹ªº¦P¾Ç
§Q¥Î¦Ñ®v©Òµ¹©wªº´Á¤¤§@·~½d¨Ò¶}©lµÛ¤â¡A¶}µo¤@®MClient Server¬[ºcªººô¸ô¤U´Ñµ{¦¡¡C
§Aªºµ{¦¡¥²»Ý¥i¥Hºô¸ô¤W¨â¤H¹ï¾Ô ( bonus: ¨ä¥L¥x¹q¸£Æ[¾Ô )¡A
´Ñ½Lªº³¡¥÷¸g¥ÑServer±±ºÞ¡AClientºÝ¥ut³d¤U´Ñ¤¶±©M±µ¦¬ª±®a¤Uªº«ü¥O¡C
Server»PClient¤§¶¡ªº·¾³qspec¥i¥H¦Ûq¡C
admin projectt³d½Õ¾ã°Ñ¼Æ
§Aªºµ{¦¡¥²»Ýnimplement¤U´Ñªº³W«h¡A¤ñ¦p»¡ª±®a¤@¦¸¥u¯à¤U¤@Áû´Ñ¡A
°¨¸ò¬¶¦U¦³¦Û¤v²¾°Êªº³W«hµ¥¡C
2002¦~´Á¥½§@·~°Ñ¦Ò¡G
1. Due Jan 20, 2003
2. Rewrite the client and the admin program into ActiveX format.
Add two HTML files to use them.
3. Add more features if so desired.