9. 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 B In c++ programming, "/*...*/" can be used for a paragraph of comments, "//" can be used for one line comments C The compiler will detect the exception using “try{…}catch(*){…}” D try{throw;}catch(*){…}re-throw(重抛) the exception;选什么
时间: 2024-04-23 15:25:00 浏览: 53
ADC-Main-C.zip_The Up and Up_arm_exe_win32
D try{throw;}catch(*){…}re-throw(重抛) the exception;不正确。应该是try{throw;}catch(...){…}re-throw(重抛) the exception;。因为使用catch(*)可以捕获所有类型的异常,但是不推荐这种做法,应该使用catch(...)来捕获所有类型的异常。
阅读全文