<?xml person
--//http:www.hngutong.com/com/jfei/20110907.dsd?>
<person>
<property name="name" value="jfei"/>
<property name="age" value="23"/>
<property name="sex" value="famele"/>
<property name="payment" value="1000$"/>
<property name="address" ...
request.setCharacterEncoding("gb18030");
String name = request.getParameter("jingfei");
response.setHeader("refresh","3");
response.sendRedirect("h.html");
response.setCharacterEncoding("gb18030");
response.setHeader("refresh","2;url=login.aspx");
session.setAttribute("","");
session.invalidate();
session.removeAttribute("");
Object session.getAttribute("");
<%@ page pageEncoding="gb18030"%>
<%@ page contextType=""%>
<%@ page language=""%>
<%@ page import=""%>
<%@ taglib prefix="" uri=""%><%@ include file=""%><jsp:include page="" flush="true"/>
<jsp:forward page=""/>
<jsp:useBean id="" scope=""/>
<?xml jfei ?>
<jfei>
<age>
<value property="jfei"/>
</age>
<sex>
<value property="famle"/>
</sex>
<length>
<value property="170cm"/>
</length>
<weight>
<value property="55kg"/>
</weight>
</jfei>
function isAlert()
{
alert("I'm tired,i want to have a rest");
}
p{
font-siize:12px;
text-align:center;
color:#2;
margin-left:23px;
position:23px;
}
.lp{
text-align:center;
color:12;
}
<html>
<head>
<title>jfei</title>
</head>
<body>
<p>jfei</p>
<p></p>
<li style="font-size"></li>
</body>
</html>
class Car{
String color;
float length;
long id;
public Car(){
}
public Car(String color,float length,long id){ this.color= color;
this.length =length;
this.id =id;
}
public String toString(){
reutrn color+length+id;
}
}
//以下代码有没有错误
class DateDemo{
public static void main(String args[]){
Date d =new Date();
SimpleDateFormat sf =new SimpleDateFormat("yyyy-MM-dd");
System.out.println("Time is"+sf.format(d));
System.out.println();
...
class StringTest{
public static void main(String args[]){
System.out.println("Input one String\n");
String s ="jfei";
System.out.println(s.length());
System.out.println(s.charAt(1));
System.out.println(s.substring(2,2));
System.ou...
void main()
{ int a,b[10];
clrscr();
printf("Input ten numbers\n");
for(a=0;a<10;a++)
scanf("%d",&b[a]);
printf("Ten numbers are\n");
for(a=0;a<10;a++)
printf("%4d",b[a]);
}
//数组的赋值和输出
我是学习编程的,学过的编程语言有c,java,html,css,javascript。刚开始学习C语言的时候,不知道main()方法的功能,常用的库(比如stdio.h,math.h,conio.h),更严重的是不知道"%d"代表啥含义,最严重的是不知道怎样保存一个文件。
在老师、同学、和我自己帮助下,每天晚上看C程序,每天用心写一两个程序,让程序像诗歌一样呈现出来。尤其在调试C程序时,用的是Turb2.0。经历一年多的时间,渐渐懂得数据类型、函数、指针的定义和用法。
学习java的时候,为了搞懂类和对象的区别,我们几个同学常常聊到晚上十一点左右。想想大学生活,...
public class SysTem{
public static void main(String args[]){
System.out.println("Hello,world");
}
}
//Hello,world Java SE
void output()
{
int a,b;
clrscr();
printf("input two number\n");
scanf("%d%d",&a,&b);
printf("%4d%4d",a,b);
}
void main()
{
output();
}
//使用main()方法调用output()方法