當前位置:首頁 » 操作系統 » fh源碼模版

fh源碼模版

發布時間: 2023-07-12 18:56:01

1. asp的網站答題之後才能注冊的源碼

<%
wt1="中國是那年主辦奧運會?"
wt2="香港是那年回歸的?"
hd1="2008"
hd2="1997"
filename=Request.ServerVariables("URL")

if request("action")="" then

%>

<table align="center" width="80%" height="101" border="0" cellspacing="1" cellpadding="6" class="a2">
<FORM name="form" onsubmit="return Check();" action="<% =filename %>?action=new" method="post">
<tr height="25"><td>網站需要設置若干問題來有選擇性的限制會員注冊 最好是每一個或者兩個問題回答之後引導進入注冊頁面</td></tr>
<tr><td>

問題1:<%=wt1%><BR>
回答1<INPUT type=text name=f_hd1 maxLength=5 size=18><BR>
問題2:<%=wt2%><BR>
回答2<INPUT type=text name=f_hd2 maxLength=5 size=18><BR>
<input type="submit" name="cm" value="下一步" ></td></tr>
</table>
</FORM>

<% end if
if request("action")="new" then

f_hd1=trim(Request("f_hd1"))
f_hd2=trim(Request("f_hd2"))

if f_hd1<>hd1 and f_hd2<>hd2 then
Response.Write "<script language=javaScript>{alert('對不起,問題回答錯誤。');location.href = 'javascript:history.go(-1)';}</script>"
Response.End
else
Response.Redirect "1.asp" '如果問題都回答准確後轉到正式的用戶注冊頁
end If

End If
%>

2. 匯編語言問題 在單片機LED上顯示數字(0~9)的源代碼是什麼啊

這個有查表的方法來做:
;;8051
;;晶體振盪F=12Mhz
;;;
KEY32
REG
P3.2
;
ORG
0000H
AJMP
MAIN
ORG
0003H
RETI
RETI
ORG
000BH
RETI
ORG
0013H
RETI
RETI
ORG
001BH
RETI
ORG
0023H
RETI
DB
C0H
;0
ADRRESS
0024H
DB
F9H
;1
DB
A4H
;2
DB
B0H
;3
DB
99H
;4
DB
92H
;5
DB
82H
;6
DB
F8H
;7
DB
80H
;8
DB
90H
;9
MAIN:
MOV
R0,#7FH
;
CLR
A
;
$CL
MOV
@R0,A
;
DJNZ
R0,$CL
;初始化
MOV
SP,#60H
;初始化
MOV
20H,#00H
;最開始設定為0
MOV
DPTR,#0024H
;指向數據表首地址
;;
$0
JB
KEY32,$0
MOV
A,20H
INC
A
CJNE
A,#10D,$1
;不相當則轉移
MOV
A,#00H
$1
MOV
20H,A
;保存數據
MOVC
A,@A+DPTR
MOV
P1,A
;DISPLAY
$2
CALL
DLY
;調用延時等待
KEY
起來
JNB
KEY32,$2
AJMP
$0
;;
DLY:
MOV
R7,#00
;DELAY
$A
MOV
R6,#00
;
$B
DJNZ
R6,$B
DJNZ
R7,$A
RET
;

3. 易語言製作一個自動後台下載安裝的源碼或者教程也可以

http://..com/link?url=kdNiQ-U4_WaXFE6KBy7p6glxrNyqw3s3HxO8u---ZFe6RlQn79qQYzK

4. java代碼生成器怎麼用

zip包,然後自動下載下來

1.預先定義好模板

最後放出源代碼:

package com.et.controller.system.createcode;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.et.controller.base.BaseController;
import com.et.util.DelAllFile;
import com.et.util.FileDownload;
import com.et.util.FileZip;
import com.et.util.Freemarker;
import com.et.util.PageData;
import com.et.util.PathUtil;

/**
* 類名稱:FreemarkerController
* 創建人:Harries
* 創建時間:2015年1月12日
* @version
*/
@Controller
@RequestMapping(value=」/createCode」)
public class CreateCodeController extends BaseController {

/**
* 生成代碼
*/
@RequestMapping(value=」/proCode」)
public void proCode(HttpServletResponse response) throws Exception{
PageData pd = new PageData();
pd = this.getPageData();

/* ============================================================================================= */
String packageName = pd.getString(「packageName」); //包名 ========1
String objectName = pd.getString(「objectName」); //類名 ========2
String tabletop = pd.getString(「tabletop」); //表前綴 ========3
tabletop = null == tabletop?」」:tabletop.toUpperCase(); //表前綴轉大寫
String zindext = pd.getString(「zindex」); //屬性總數
int zindex = 0;
if(null != zindext && !」」.equals(zindext)){
zindex = Integer.parseInt(zindext);
}
List<String[]> fieldList = new ArrayList<String[]>(); //屬性集合 ========4
for(int i=0; i< zindex; i++){
fieldList.add(pd.getString(「field」+i).split(「,fh,」)); //屬性放到集合裡面
}

Map<String,Object> root = new HashMap<String,Object>(); //創建數據模型
root.put(「fieldList」, fieldList);
root.put(「packageName」, packageName); //包名
root.put(「objectName」, objectName); //類名
root.put(「objectNameLower」, objectName.toLowerCase()); //類名(全小寫)
root.put(「objectNameUpper」, objectName.toUpperCase()); //類名(全大寫)
root.put(「tabletop」, tabletop); //表前綴
root.put(「nowDate」, new Date()); //當前日期

DelAllFile.delFolder(PathUtil.getClasspath()+」admin/ftl」); //生成代碼前,先清空之前生成的代碼
/* ============================================================================================= */

String filePath = 「admin/ftl/code/」; //存放路徑
String ftlPath = 「createCode」; //ftl路徑

/*生成controller*/
Freemarker.printFile(「controllerTemplate.ftl」, root, 「controller/」+packageName+」/」+objectName.toLowerCase()+」/」+objectName+」Controller.java」, filePath, ftlPath);

/*生成service*/
Freemarker.printFile(「serviceTemplate.ftl」, root, 「service/」+packageName+」/」+objectName.toLowerCase()+」/」+objectName+」Service.java」, filePath, ftlPath);

/*生成mybatis xml*/
Freemarker.printFile(「mapperMysqlTemplate.ftl」, root, 「mybatis_mysql/」+packageName+」/」+objectName+」Mapper.xml」, filePath, ftlPath);
Freemarker.printFile(「mapperOracleTemplate.ftl」, root, 「mybatis_oracle/」+packageName+」/」+objectName+」Mapper.xml」, filePath, ftlPath);

/*生成SQL腳本*/
Freemarker.printFile(「mysql_SQL_Template.ftl」, root, 「mysql資料庫腳本/」+tabletop+objectName.toUpperCase()+」.sql」, filePath, ftlPath);
Freemarker.printFile(「oracle_SQL_Template.ftl」, root, 「oracle資料庫腳本/」+tabletop+objectName.toUpperCase()+」.sql」, filePath, ftlPath);

/*生成jsp頁面*/
Freemarker.printFile(「jsp_list_Template.ftl」, root, 「jsp/」+packageName+」/」+objectName.toLowerCase()+」/」+objectName.toLowerCase()+」_list.jsp」, filePath, ftlPath);
Freemarker.printFile(「jsp_edit_Template.ftl」, root, 「jsp/」+packageName+」/」+objectName.toLowerCase()+」/」+objectName.toLowerCase()+」_edit.jsp」, filePath, ftlPath);

/*生成說明文檔*/
Freemarker.printFile(「docTemplate.ftl」, root, 「說明.doc」, filePath, ftlPath);

//this.print(「oracle_SQL_Template.ftl」, root); 控制台列印

/*生成的全部代碼壓縮成zip文件*/
FileZip.zip(PathUtil.getClasspath()+」admin/ftl/code」, PathUtil.getClasspath()+」admin/ftl/code.zip」);

/*下載代碼*/
FileDownload.fileDownload(response, PathUtil.getClasspath()+」admin/ftl/code.zip」, 「code.zip」);

}

}

熱點內容
安卓手機如何繞過緩存軟體 發布:2025-03-16 22:35:16 瀏覽:241
c語言求職 發布:2025-03-16 22:34:23 瀏覽:429
在線教育培訓源碼 發布:2025-03-16 22:31:57 瀏覽:233
反編譯vb工具 發布:2025-03-16 22:27:04 瀏覽:353
安卓流程為什麼越來越多 發布:2025-03-16 22:26:50 瀏覽:933
五軸編程模型 發布:2025-03-16 22:17:48 瀏覽:181
linuxc函數庫 發布:2025-03-16 22:03:33 瀏覽:921
iphone最新版系統從哪裡改密碼 發布:2025-03-16 21:56:19 瀏覽:596
python的execute 發布:2025-03-16 21:40:24 瀏覽:767
今天的訪問量就靠你了 發布:2025-03-16 21:39:35 瀏覽:430