html5新规则

HTML 标签 <!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <command> <datalist> <dd> <del...
html | 2012-06-06 10:16 | 阅读 1672 次 | 评论 0 条

二维数组赋值

void main() { int a,b,c[3][4]; clrscr(); printf("please input 12 numbers\n"); for(a=0;a<3;a++) for(b=0;b<4;b++) scanf("%4d",&amp;c[a][b]); printf("12 numbers are\n"); for(a=0;a<3;a++) { for(b=0;b<4;b++) printf("%4d",c[a][b]); p...
c | 2012-01-07 11:36 | 阅读 1476 次 | 评论 0 条

一段c语言代码

//一段c语言代码#include"stdlib.h"#include"stdio.h"void main(){double *ss;//定义double类型,地址名字为ss的一级指针int i,j,n;//i,j循环变量,int length;n=4;ss=(double *)malloc(n*(n+1)*sizeof(double));//静态分配20个类型内存空间length=n*(n+1);for(i=0;i<n;i++){ for(j=0;j<n+1;j++) *(ss+i*(n+1)+j)=0; *(ss+i*(n+1)+i)=1;//赋值}//结果为:ss[0]=1,...
c | 2011-12-22 11:09 | 阅读 1502 次 | 评论 0 条

一维数组的使用

import java.util.Scanner;class ArrayDemo{ public static void main(String args[]){ sortArray(); }/** *一维数组的使用 */public static void sortArray() throws Exception{ Scanner in = new Scanner(System.in); System.out.println("Input one number"); int length =...
java | 2011-12-13 09:57 | 阅读 1366 次 | 评论 0 条

观察一下下列代码问题吗?

/**c语言赋值**/#include <stdio.h>#include <string.h>int main(){ char CH3[120][10]; int i,j,x=0,k=0,t,m=1,n=0,p=0;/*循环变量i,j*/ char CH1[120][70]; for (i=0; i<120; i++) strcpy(CH1[i],"0");/*ch1[120][70]赋初值'0'*/ char CH2[4][10]= {"VISIT","BACK","FORWARD","QUIT"};/*功能按钮*/ strcpy(CH...
c | 2011-12-10 12:46 | 阅读 1281 次 | 评论 0 条

introduce

<?xml encoding="utf-8"?><introduce name="" value="" extends=""> <property name="name" value="井飞"/> <property name="class" value="08v8"/> <property name="age" value="23"/> <property name="sex" value="female"/> <property name="job" value="seo"/> <property...
xml | 2011-12-10 10:56 | 阅读 1174 次 | 评论 0 条

jsp的动作

<jsp:useBean id="" class="" scope=""/><jsp:setProperty name="" value=""/><jsp:getProperty name="" value=""/><jsp:include page="url" flush="true"/>
jsp | 2011-12-10 10:51 | 阅读 1084 次 | 评论 0 条

jdbc连接数据库

class JDBCConn{private static Connection con;private PreparedStatement pstm;private ResultSet rs;/***1.加载驱动程序*2.获得连接*/ private JDBCConn(){ try{ Class.forName(String url); System.out.println("加载驱动程序成功"); con= DriverManager.getConnection(String driverName,String userName...
java | 2011-12-10 10:26 | 阅读 1362 次 | 评论 0 条

偶数的判断

/** *如果一个数能被2整除且余数为0 返回1 佛则返回 0 */int isOuShu(int i){ if(i%2==0) return 1; else return 0;}void main(){ int a; printf("请输入以下数字\n"); scanf("%d",&amp;a); if(isOuShu(a)){ printf("%d 是偶数",a); } else{ printf("%d 是奇数",a); }}
c | 2011-12-08 14:41 | 阅读 1275 次 | 评论 0 条

document

document.getElementById("ID").innerHTML="我爱你,中华";document.getElementByName("name").outHTML="<font color='red'>郑州,我来拉</font>";
javascript | 2011-12-07 13:15 | 阅读 1272 次 | 评论 0 条

c语言的循环

1.for2.while3.do...whilefor(int i=0;i<10;i++) printf("%4d",i);while(1){ printf("welcome to the world");}do{ printf("hello,world");}while(1);
c | 2011-12-07 13:07 | 阅读 1241 次 | 评论 0 条

交换排序

void sortArray(int b[],int n) { int i,j,t; for(i=0;i<n-1;i++) for(j=i+1;j<n;j--) if(b[j]<b[j-1]) { t =b[j]; b[j]=b[j-1]; b[j-1]=t; } } void outPut(int b[],int n){ int i; printf("%d numbers are\n",n); for(i=0;i<n;i++) ...
c | 2011-12-06 13:34 | 阅读 1126 次 | 评论 0 条

bean

<bean id="name" class="com.hnguotong" scope="prototype"> <property name="title" value="郑州交通设施|道路标牌厂家"/> <property name="age" value="1"/> <property name="prolicy" value="坚持到底,不要放弃"/> <set name="list"> <value>/list</value> <value>/list</value> <value>/list</value> </set> </bean>
xml | 2011-12-05 12:20 | 阅读 1213 次 | 评论 0 条

session

void session.setAttribute("",""); Object session.getAttribute(""); response.setHeader("",""); response.setCharacterEncoding("gb18030"); String request.getParameter(); String request.getParameterValues(); request.setCharacterEncoding("gb18030");
jsp | 2011-12-05 12:14 | 阅读 1174 次 | 评论 0 条

ArrayTest

import java.util.ArrayList; import java.util.Scanner; import java.text.SimpleDateFormat; class ArrayTest{ public static void main(String args[]){ System.out.println("Input one number\b"); Scanner in = new Scanner(System.in); System.out.println("Input one number\...
java | 2011-12-05 12:06 | 阅读 1394 次 | 评论 0 条

body

<html> <head> <title></title> <meta name="" content=""/> </head> <body onload="javascript:document.location.href='www.zzgtly.com'"> <span id="name" style="font-size:12px;font-weight:bold" onmouseout="javascript:document.getElementById('name').innerHTML='仁者无敌'"><li style="l...
html | 2011-12-02 13:53 | 阅读 1169 次 | 评论 0 条

css样式

#pn{ position:absolute; top:200px; left:200px; width:300px; height:300px } body{ margin:12px; auto:0; background-image:url(../back.jpg); } .lo{ font-size:12px; font-family:宋体; font-weight:bold; color:#1232; } ul,li,ol{ list-style:no...
css | 2011-12-02 13:48 | 阅读 1240 次 | 评论 0 条

struts2的tags

1.<%@ taglib prefix="s" uri="/struts-tags"%> 2.<s:form name="" action="" namespace=""> <s:textfield name="" label="name"/> <s:password name="" label="pass"/> <s:textarea name="" label="advice"/> <s:submit name="" label="submit"/> </s:form> 3.<s:action name...
jsp | 2011-12-01 17:04 | 阅读 1175 次 | 评论 0 条

一维数组例子

void main() { int a,array[10]; //a 循环变量 //array[10] 数组名称 也代表数组的首地址 printf("Please input ten numbers\n"); for(a=0;a<10;a++) scanf("%d",&amp;array[10]); printf("Ten numbers are\n"); //Ouput ten numbers are for(a=0;a<10;a++) printf("%4d",array[10]); printf("\n"); ...
c | 2011-12-01 16:51 | 阅读 1235 次 | 评论 0 条

内置对象

session session.setAttribute("name","name"); Object session.getAttribute("name"); response response.setCharacterEncoding("gb18030"); response.setHeader("refresh","2;url=123.html"); response.sendRedirect("123.html"); request request.setCharacterEncoding("gb18030"); String requet.getParam...
jsp | 2011-11-03 15:26 | 阅读 1077 次 | 评论 0 条
浏览55921次
最新评论