1.lexical analysis,which analyzes the character string presented to it and divides it up into tokens that are legal members of the vocabulary of the language in which the program is written (and may produce error messages if the character string is n…
转自: http://www.loliman3000.com/tech/2fe33ce32906f0302412881.php 下面的程序風格規則提煉自Brian Kernighan和P. J. Plauger的經典著作<The Elements of Programming Style>(由McGraw Hill出版).由於原書出版較早並主要針對Fortran語言,本文僅提煉適用於當今主流編程語言的風格要素. ——Clive Studio 1.Write clearly - don‘‘t b…