当前位置:首页
开发技术指南» 文章正文
    引言:

 ·用picture 做按钮    »显示摘要«
    摘要: 我用picture 控件来做按钮,图片里有五个一样大小的图像,但颜色不一样. 窗体和控件的单位是 "像素" 在mousemove 事件里写了这样的代码 private sub picture1_mousemove(button as integer, shift as integer, x as single, y as single) if button = 1 th......
    摘要: <script language="java"> function check_ddd(){ ddd.action="test_dj_lanmu.jsp?type=save"; ddd.submit(); } </script> <body> <form name="ddd" action......


解决个小问题,先来先得分

 
  import   java.io.*;  
  public   class   BinaryIODemo   {  
  public   static   void   main(String[]   args)   throws   IOException  
    {  
                            try  
            {  
                    DataOutputStream   out   =   new   DataOutputStream(  
  new   BufferedOutputStream(  
  new   FileOutputStream("Data.txt")));  
   
  out.writeBoolean(true);  
  out.writeDouble(3.1415926);  
  out.writeChars("That   was   PI\n");  
  out.writeBytes("That   was   PI\n");  
   
  out.close();  
   
  DataInputStream   in   =   new   DataInputStream(  
  new   BufferedInputStream(  
  new   FileInputStream("Data.txt")));  
   
  BufferedReader   buffer   =   new   BufferedReader(  
  new   InputStreamReader(in));  
   
   
  System.out.println(in.readBoolean());  
  System.out.println(in.readDouble());  
   
  System.out.println(buffer.readLine());  
  System.out.println(buffer.readLine());  
   
  }  
  catch(IOException   e)  
  {  
  e.printStackTrace();  
  }  
  }  
  }  
   
  程序运行结果是:true  
                                  3.1415926  
   
  为什么System.out.println(buffer.readLine());和System.out.println(buffer.readLine());没有输出内容来啊?  
 

NO.1   作者: Dan1980

楼主,   我运行了你的代码,   有内容输出啊.   结果为:  
   
  true  
  3.1415926  
    T   h   a   t     w   a   s     P   I  
  That   was   PI

NO.2   作者: DJadeChow

我和二楼的运行结果一样啊

NO.3   作者: interhanchi

^_^,我也有输出呀  
  true  
  3.1415926  
   
  T   h   a   t     w   a   s     P   I  
  That   was   PI  
   
 

NO.4   作者: joneyonly

我也试了   可以输出阿  
   
  搂主看看你有没有生成data.txt这个文件?

NO.5   作者: caoxiongjun

我的结果也同楼上,没问题啊!

NO.6   作者: alexwan

我也运行了,前面两位都一样啊!

NO.7   作者: zuguanqun

我的也有结果啊,和上面的一样啊


    摘要: 请教怎么系统地去学习嵌入开发(wince)?我是菜鸟一个,很多专业名词都很陌生,搞得晕头转向,有谁比较系统的介绍一下,怎么去学习,从哪些方面入手,用哪些工具,前提是我有学过visual c++, 但是没有实际的项目开发经验?或是推荐比较好的书籍,谢谢 ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE