size/PN_size))&&f_size<=(10*P_size+P_size*(P_size/PN_size)+P_size*(P_size/PN_size)*(P_size/PN_size))){//二级索引 quai=(f_size-P_size*10-P_size*(P_size/PN_size))/P_size; pian=(f_size-P_size*10-P_size*(P_size/PN_size))%P_size; System.out.println("启动了二级索引,文件占用了二级索引的地址块是第"+quai+"块,偏移量是"+pian); }elseif(f_size>(10*P_size+P_size*(P_size/PN_size)+P_size*(P_size/PN_size)*(P_size/PN_size))&&f_size<=(10*P_size+P_size*(P_size/PN_size)+P_size*(P_size/PN_size)*(P_size/PN_size)+P_size*(P_size/PN_size)*(P_size/PN_size)*(P_size/PN_size))){//三级索引 quai=(f_size-P_size*10-P_size*(P_size/PN_size)-P_size*(P_size/PN_size)*(P_size/PN_size))/P_size; pian=(f_size-P_size*10-P_size*(P_size/PN_size)-P_size*(P_size/PN_size)*(P_size/PN_size))%P_size; System.out.println("启动了三级索引,文件占用了三级索引的地址块是第"+quai+"块,偏移量是"+pian); }?}}运行结果: