原创 Gentoo下Mentohust開機自啓動腳本

#!/sbin/runscript # Copyright (c) by Gentoo Lover <[email protected]> # description="Set the mentohust level for a

原创 HLA中的類

program classDemo; #include ("stdlib.hhf"); type People: class var pName: string;

原创 Linux下C內聯彙編小例子

/* ============================================================================ Name : GCC.c Author : Ge

原创 Linux X86_64下的32位彙編環境

1.彙編: as -32 -o hello.o hello.s 2.鏈接: ld -dynamic-link /lib/ld-linux.so.2 -lc -melf_i386 hello.o -o hello

原创 VC中使用C內聯彙編小例子

#include <stdio.h> int main() { int x = 1; int y = 1; int z = 0; __asm { xor edx,edx ;edx=0 add edx,x ;edx

原创 Java一條語句斷定本機的大小端

System.out.println(ByteOrder.nativeOrder().toString());

原创 使用Java開發一個非常簡單的Web Service例子

1.定義一個Web Service 的接口類 package org.yang.ws; import javax.jws.WebMethod; import javax.jws.WebService; import javax.jws

原创 SpringMVC中使用AOP

1.定義一個AOP: package org.yang.aop; import java.io.IOException; import javax.servlet.http.HttpServletResponse; import o

原创 JavaWeb中的路徑

String saveDirString = request.getSession().getServletContext().getRealPat

原创 HLA中的函數及調用

program procedureDemo; #include ("stdlib.hhf") static inputString: string; procedure sayHelloWorld( hello:s

原创 使用Tomcat7自帶的數據庫連接池

1.在Tomcat的安裝目錄下的conf\Catalina\localhost 目錄下建立一個與你打算給Web應用程序起的別名的文件:命名方式爲:別名.xml 我的如下:gentoo.xml。注意這個名字要與 path裏的值一樣。 <Co

原创 HTML中預覽圖片的JQeury代碼

$(function(){ $("input[type='file']").change(function(evt){ var files = evt.target.files; ale

原创 HLA中的數組與地址

1. 在HLA中(不是官方說的,而是自己探討的,不知道正不正確^_^),數組的地址是數據的第一個字節的地址。 2。如果數組的單位是字節,則首地址也是第一個數據的地址。即首地址的內容與第一個數據的內容是相同的。 4。否則數組的首地址不是第一

原创 Intel彙編寫的斐波那契數

includelib kernel32.lib includelib user32.lib includelib Irvine32.lib .386 .model flat,stdcall .stack 4096 Exit

原创 HLA判斷字符串是否相等

program strDemo; #include ("stdlib.hhf"); static string1: string; string2: string; begin strDemo;