用 malloc 或 new 申请内存之后,应该立即检查指针值是否为 NULL. 防止使用指针值为 NULL 的内存. #include <iostream> #include <string.h> //main()函数 /* run this program using the console pauser or add your own getch, system("pause") or input loop */ using namespace std;
java.lang.Throwable类是java语言中所有错误的异常的超类. Exception:编译期异常,进行编译(写代码)java程序出现的问题 RuntimeExeption:运行期异常,java程序运行过程中出现的问题 异常就相当于程序得了一个小毛病(感冒发烧)把异常处理掉程序就可以继续运行 Error错误:错误就相当于程序得了一个无法治愈的毛病(非典,艾滋),必须修改源代码,程序才能继续执行 public class Test{ public static void main(St
oracle中,任何字符串与null比较得到的结果都是null,而 oracle的判断条件为null时就退出判断(?) 因此判断某个字符串是否在一个集合中时,not in 和 in的结果完全不一样,如 select * from airport_heliport t where t.airport_heliport_uuid in ( select 'e6513669-8cb7-41d9-85af-11ab26930790' from dual union select null from d