2014年1月4日

摘要: csharp操作xml写xml1.java操作xml写xmlimport javax.xml.transform.*;import javax.xml.transform.stream.*;import javax.xml.transform.dom.*;import org.w3c.dom.*;import javax.xml.parsers.*;import java.io.*;import java.util.*;public class WriteXML{public static void main(String[] args){ try{ DocumentBuilderFactor 阅读全文
posted @ 2014-01-04 21:56 梦溪薇夏 阅读(934) 评论(0) 推荐(0) 编辑

2014年1月3日

摘要: JavaScript DOM操作XML显示查询添加删除 实验CJavaScript DOM操作XML显示查询添加删除 请输入学号: 姓名: 性别: 专业: 数学: 英语: 阅读全文
posted @ 2014-01-03 21:12 梦溪薇夏 阅读(231) 评论(1) 推荐(0) 编辑

2013年11月23日

摘要: import java.util.Scanner;public classrili { public static void main(String[] args) { Scanner input=new Scanner(System.in); int year; int month; int days=0; int sum=0; int sum1=0; int sum2=0; String s; do { //输入年份和月份并判断是否合法; do { System.out.println("请输入年份:"); year=input.nextInt(... 阅读全文
posted @ 2013-11-23 23:01 梦溪薇夏 阅读(307) 评论(0) 推荐(0) 编辑

2013年11月13日

摘要: 启动tomcat ,在浏览器里输入网址http://localhost:8080把写好的js文件放到C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps 这个目录下然后在网址中添加http://localhost:8080/d/ 即可看到显示 其中d是写好的js文件所在的文件夹的名字 阅读全文
posted @ 2013-11-13 22:46 梦溪薇夏 阅读(115) 评论(0) 推荐(0) 编辑

2013年11月10日

摘要: import java.io.*;public class 日期类{ /** * @param args */public static void countday(String[] args) throws IOException{// TODO Auto-generated method stubint year,month,date,i,day=0; String str; BufferedReader buf; buf=new BufferedReader(new InputStreamReader(System.in)); System.out.println("输入一个年 阅读全文
posted @ 2013-11-10 22:12 梦溪薇夏 阅读(337) 评论(0) 推荐(0) 编辑

2013年11月6日

摘要: import java.util.Scanner;import java.math.*;import java.text.*;public class Main {public static void main(String[] args) { Scanner cin=new Scanner(System.in); BigInteger a,b; while(cin.hasNext()){ a=cin.nextBigInteger(); b=cin.nextBigInteger(); System.out.println(a.add(b)); } }}java.util.Scanner是Jav 阅读全文
posted @ 2013-11-06 23:59 梦溪薇夏 阅读(654) 评论(0) 推荐(0) 编辑
 
摘要: #include#include#includeusingnamespacestd;intmain(){stringa,b;intnum,sum[1000];//数组尽量开大点,不然很容易越界!cin>>num;for(intl=0;l>a>>b;intm=0,n=0,temp=0,i,k;intq=0;//用于记录sum数组的长度!!i=a.length();k=b.length();i=i-1;k=k-1;while(i>=0&&k>=0)//像是这样加,会一直加到一个数加完{m=a[i]-'0';n=b[k]-&# 阅读全文
posted @ 2013-11-06 23:52 梦溪薇夏 阅读(2056) 评论(0) 推荐(0) 编辑

2013年10月29日

摘要: 关于输入输入包含多组测试数据. 每组测试数据的第一行是一个整数n(1#include //使用sort函数要引用的头文件using namespace std;int main(){int a[100000],b[100000],n,i,j;cin>>n;for(i=0;i>a[i];for(j=0;j>b[j];sort(a,a+n); //用函数sort(数组名,数组名+范围)使用sort函数要引用头文件#include 且默认升序,限制是只能排int型和double型 不能排char型sort(b,b+n); int win = 0; int fail = 0; 阅读全文
posted @ 2013-10-29 23:08 梦溪薇夏 阅读(2820) 评论(0) 推荐(0) 编辑

2013年10月28日

摘要: public class 循环 {/** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int m=8,n=m,sum=0;for(int i=0;i<8;i++) { sum=sum+n; n=n*10+m; } System.out.print(sum); }} 阅读全文
posted @ 2013-10-28 23:27 梦溪薇夏 阅读(435) 评论(0) 推荐(0) 编辑
 
摘要: #include using namespace std;int main(){int n,i,j;cin>>n;for(i=2;i=i-1) { cout<<i<<" "; }}return 0;} 阅读全文
posted @ 2013-10-28 23:11 梦溪薇夏 阅读(374) 评论(0) 推荐(0) 编辑