- 博客(2)
- 收藏
- 关注
原创 java抛出和捕获异常
try{ ...//可能会抛出异常的代码块}catch(Error e){ //出现Error时执行下面 System.out.println("error");}catch(Exception e){ System.out.println("exception");}catch(Throwable e){ //Throwable是超类,包含上面两类 System.out.println("Throwable");}finally{ //有无异常都会执行,处理善后作用,也可不写
2022-05-24 11:31:30
55
原创 C语言中结构体与函数
在C语言中,结构体内部不可定义函数;但是定义函数时,可以是结构体类型,如:struct student{ int num;char name[10];char sex;};struct student search(void){struct student xiaoming;…return xiaoming;}...
2020-02-11 21:26:24
938
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人