zoukankan      html  css  js  c++  java
  • 【每日日报】第四十三天

    1 今天继续整理暑假作业

    package File;

    import java.io.FileInputStream;

    import java.io.FileOutputStream;

    import java.io.IOException;

    import java.io.PrintStream;

    public class CPP0047 {

         public static void main(String[] args){

                FileInputStream in=null;

                try{

                       in=new FileInputStream("D:/s2.dat");

                       PrintStream out=new PrintStream(new FileOutputStream("D:/d2.dat"));

                       byte[] ch=new byte[1024];

                       int len=-1;

                       String s=" ";

                       while((len=in.read(ch))!= -1){

                              s=new String(ch,0,len);

                    }

                       char[] ch1=s.toCharArray();

                       for(int i=0;i<s.length();i++){

                              if((ch1[i]>='a')&&(ch1[i]<='z'))ch1[i]-=32;

                       }

                       out.println(ch1);

                }catch (IOException e){

                       System.out.println("can not open txt");

                }

      }

    }

     2 遇到一些小问题 已基本解决

    3 明天开始学习web

  • 相关阅读:
    luogu P1075 质因数分解
    luogu P1146 硬币翻转
    [HEOI2013]SAO
    [HAOI2010]软件安装
    [CodeForces-763C]Timofey and remoduling
    [CodeForces-375E]Red and Black Tree
    [CodeForces-178F]Representative Sampling
    [CodeForces-55D]Beautiful Numbers
    [AHOI2009]同类分布
    [ZJOI2010]数字计数
  • 原文地址:https://www.cnblogs.com/linmob/p/13519459.html
Copyright © 2011-2022 走看看