C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 /* 名称:C++强制类型转换:static_cast.con…
在javascript中,常会发生强制类型转换的情况有以下几种 字符串拼接 var a = 1; var b = a + '1'; console.log(b); //11 ==运算符 var a = 1; var b = '1'; console.log(a == b); //true if语句 var a=10; if(a){ } if条件判断时,自动将a转换为true. 逻辑运算 console.log('a' || false);…