Daily Archives: June 24, 2017

return void type

在C++ void function()中,如果要提前返回的話,只要加上return;那麼,是否可以return 一個void function呢? 答案是可以的,以下是C++03標準的摘錄 A return statement with an expression of type “cv void” can be used only in functions with a return type of cv void; the expression is evaluated just before the function returns to its … Continue reading

Posted in C++ Language | Leave a comment