zoukankan      html  css  js  c++  java
  • 第三周

    所花时间:一下午+一晚上+一天

    代码行:95

    博客量:两篇

    了解到的知识点:

      大数组:BigDecimal:

    文件的导出与导入:

     1 File newFile = new File("E:\\eclipse-workspace\\数组\\Shu.txt");//文本文档的位置
     2         if(!newFile.exists()) {
     3             System.out.println("文件无法打开!");
     4         }
     5         FileOutputStream out = new FileOutputStream(newFile);
     6          
     7 out.write(String.valueOf("最大数:").getBytes());
     8     out.write(String.valueOf(max).getBytes());
     9     out.flush();
    10     out.close();
    11     FileReader reader=new FileReader("E:\\eclipse-workspace\\数组\\Shu.txt");
    12     BufferedReader br=new BufferedReader(reader);
    13     String line;
    14     while((line=br.readLine())!=null) {
    15         System.out.println(line);
    16     }
    17     }

    同时推荐文件相关安全性代码:

    https://blog.csdn.net/qq_29347295/article/details/78361412

  • 相关阅读:
    【PKUWC2018】Minimax
    Codeforces Round #673
    【BZOJ1901】Dynamic Rankings
    【笔记】树状数组
    【CF1420E】Battle Lemmings
    Codeforces Round #672
    Problem A: STL——灵活的线性表
    algorithm
    iterator
    TRY vector
  • 原文地址:https://www.cnblogs.com/smartisn/p/10533300.html
Copyright © 2011-2022 走看看