专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
源文档化包括选择标识符(变量和标号)名字、安排注释以及视觉组织等 (1)符号名命名 符号名即标识符包括模块名、变量名、常量名、标号名、子名以及数据区名、缓冲区名等这些名字应能反映它所代表实际东西应有定实际意义使其能够见名知意有助于对功能理解例如表示次数量用Times表示总量用Total表示平均值用Avet- age表示和量用Sum等等为达此目就不应限制名字长度下面是 3种区别设计语言对同变量命名 NEW.BALANCE.ACCOUNTS.PAYABlE(PASCAL) NBALAP(FORTRAN) N(BASIC) 第个是Pascal语言中命名它给变量赋予个明 [阅读全文] [PDF]
以下是源程序代码 <!DOCTYPEhtmlPUBLIC\"-//W3C//DTDXHTML1.0Transitional//EN\"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <htmlxmlns=\"http://www.w3.org/1999/xhtml\"> <head> <title>龙的传人--Xml_javascript分页</title> </head> <bodyonload=\"ge [阅读全文] [PDF]
<%Function StripNonNumeric(strInput) Dim iPos, sNew, iTemp strInput = Trim(strInput) If strInput <> \"\" Then iPos = 1 iTemp = Len(strInput) While iTemp >= iPos If IsNumeric(Mid(strInput,iPos,1)) = True Then sNew = sNew & Mid(strInput,iPos,1) End I [阅读全文] [PDF]
<%\' make sure you have the 6 dir_*.gif files!\' yes, you can copy ours if ya want too.. :)\' /Article/UploadFiles/200408/20040827165745970.gif .. etc.Function ShowImageForType(strName)strTemp = strNameIf strTemp <> \"dir\" ThenstrTemp = LCase(Right(strTemp, Len(strTemp) [阅读全文] [PDF]
很有意思的两个程序哦,值得一试,两个程序都是先获得数据在堆栈中的位置,然后计算出堆栈中函数的返回地址,并修改为想跳转到的地址,虽然看起来形式不同,其实实质相同。值得注意的是,在堆栈中分配空间,保存函数返回地址等操作是依赖于特定的编译器的,即每种编译器实现的方式都不同,因此上述程序只在VC6下编译能成功运行,换做BorlandC或其他编译器,程序就不能正确运行了。 一、fst.c源程序,在VC6下编译通过。 #include\"stdio.h\" voidoverflow(inta,intb) { charbuffer1[8]; int*ret; ret=( [阅读全文] [PDF]
- Limit TextField input to a maximum length import java.awt.*; import java.awt.event.*; public class TextFieldWithLimit extends TextField implements KeyListener {private intmaxLength;public TextFieldWithLimit (String initialStr,int col,int maxLength [阅读全文] [PDF]
1 共6条 分1页