About the comment and exception(异常), which is not correct___________ A The compiler will ignore the comments, and it doesn't affect the length of executable file In c++ programming, "/*...*/" can be used for a paragraph of comments, "//" can be used for one line comments The compiler will detect the exception using “try{…}catch(*){…}” try{throw;}catch(*){…}re-throw(重抛) the exception;
时间: 2024-04-24 15:22:22 浏览: 153
ADC-Main-C.zip_The Up and Up_arm_exe_win32
The statement "try{throw;}catch(*){…}re-throw(重抛) the exception;" is not correct. It should be "try{throw;}catch(exceptionType){…}re-throw(重抛) the exception;" where "exceptionType" is the type of exception being thrown. The catch block should specify the type of exception being caught, not use a wildcard (*).
阅读全文