摘要:
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> #include<time.h> int main(){ //整形变量 int a = 10; //短整形变量 short b = 20; //长整型变量 阅读全文
摘要:
package Demo2; //自定义异常类 public class Myexception extends Exception { //传递数字>10 private int detail; public Myexception(int a) { this.detail = a; } //重写 阅读全文
摘要:
异常处理中的五个关键词 try,catch,finally,throw,throws package com.exception; public class Test { public static void main(String[] args) { int a = 1; int b = 0; / 阅读全文