会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
编程小神仙
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
2012年4月2日
杭电ACM--1001
摘要: 1 #include<stdio.h> 2 int main(){ 3 int i,j; 4 while(scanf("%d",&i)!=EOF){ 5 long sum=0; 6 for(j=1;j<=i;j++) 7 sum+=j; 8 printf("%ld\n\n",sum); 9 } 10 return 0;11 }
阅读全文
posted @ 2012-04-02 14:29 编程小神仙
阅读(364)
评论(0)
推荐(0)
2012年3月28日
java.lang.Thread(1)
摘要: Create Threadjava线程的两种实现方式 ·继承Thread类 ·实现Runnable接口1、继承Thread类 定义语法: class classname extends Thread{ 属性; 方法; //覆写Thread类中run() public void run(){ } ...
阅读全文
posted @ 2012-03-28 13:01 编程小神仙
阅读(355)
评论(0)
推荐(0)
2012年3月26日
java.io.RandomAccessFile
摘要: RandomAccessFile1、RandomAccessFile构造方法 Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 RandomAccessFile(Filefile,Stringmode) throws FileNotFoundException创建从中读取和向其中写入(可选)的随机访问文件流,该文件由 File 参数指定。 Normal 0 7.8 磅 0 2 fal...
阅读全文
posted @ 2012-03-26 11:59 编程小神仙
阅读(448)
评论(0)
推荐(0)
2012年3月23日
java.io.File
摘要: 1、File构造方法File(Fileparent, Stringchild) 根据 parent 抽象路径名和 child 路径名字符串创建一个新 File 实例。File(Stringpathname) 通过将给定路径名字符串转换为抽象路径名来创建一个新 File 实例。File(Stringparent, Stringchild) 根据 parent 路径名字符串和 child 路径名字符串创建一个新 File 实例。File(URIuri) 通过将给定的 file: URI 转换为一个抽象路径名来创建一个新的 File 实例2、File常量staticStringpathSeparat
阅读全文
posted @ 2012-03-23 11:44 编程小神仙
阅读(530)
评论(0)
推荐(0)
上一页
1
2
3
公告