#include #include #include #include #define ID struct id struct id { char name[20]; // xing ming int num; // xue hao int age; // nian ling char sex[2]; // xing bie char xi[20]; // xi bie char zhuan[20]; // zhuan ye char add[20]; // di zhi ID *next;
用vb编写的函数作图软件的代码: Const Pi = 3.1415926535 '定义圆周率 Dim a, wor '定义用于在Picture1上的一个位置打印字符函数 Private Function PrintWord(X, Y, Word As String) With Picture1 .CurrentX = X .CurrentY = Y .ForeColor = RGB(0, 0, 255) End With Picture1.Print Word End Function '定
代码如下: function hasClass(ele,cls) { return ele.className.match(new RegExp(‘(\\s|^)’+cls+'(\\s|$)’)); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += ” “+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var r