我正在编写一些像这样的 C++ 代码:
//c++ code
class MovieInfo;
MovieInfo getMovieInfoByName(String movieName)
{
//search the movieInfoList with movieName
if(FOUND)
return movieInfo;
//TODO: **what should i return if the movieInfo can't be found in the list?**
}
问题是如果在列表中找不到movieInfo,我应该返回什么?