我找到了这段代码:
std::string(avdInfo_getSystemImagePath(m_avd)
?: avdInfo_getSystemInitImagePath(m_avd))
我只找到了关于条件运算符的信息:http://www.cplusplus.com/articles/1AUq5Di1/
也就是说,? 和 : 是分开的。但是当它们放在一起时,这意味着什么?avdInfo_getSystemImagePath
和 avdInfo_getSystemInitImagePath
都返回 char*
。