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

    1 今天写了上机练习

      4.9图书管理系统

     1 package Libiary;
     2 
     3 public class Book {
     4     String name,writer,out,btime,etime,ftime;
     5     int money;
     6     void setname(String n){name=n;}
     7     void setwritter(String w){writer=w;}
     8     void setout(String o){out=o;}
     9     String getname(){return name;}
    10     String getout(){return out;}
    11     Book(String n,String o,String w){name=n;out=o;writer=w;}
    12     public static void main(String args[]){
    13         Book b1=new Book("One","GuangMing","XiaoMing");
    14         Book b2=new Book("Tow","GuangMing","XiaoMing");
    15         System.out.print(b1.getname()+' ');
    16         System.out.println(b1.getout());
    17         System.out.print(b2.getname()+' ');
    18         System.out.println(b2.getout());
    19         
    20     }
    21 }

    2 没遇到什么问题

    3 明天继续看手册

  • 相关阅读:
    AC自动机学习笔记(模板)
    codeforces1328E
    Codeforces 1288E- Messenger Simulator (树状数组)
    线性基小记
    HDU3949
    矩阵快速幂小记
    5E
    5D
    5C
    5B
  • 原文地址:https://www.cnblogs.com/linmob/p/13418033.html
Copyright © 2011-2022 走看看