现在要把2个数a和b加在一起得到一个数据c。
但是我无法判断a和b是不是null,算法是: 如果a is null,b is null,就等于0,如果a is null,b is not null, c=b, 如果a is not null, b is null, c = a,如果a is not null, b is not null, c = a + b谢谢!!
但是我无法判断a和b是不是null,算法是: 如果a is null,b is null,就等于0,如果a is null,b is not null, c=b, 如果a is not null, b is null, c = a,如果a is not null, b is not null, c = a + b谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货