string str;
str.printf("PRN:%d ,Elevation:%d ,Azimuth:%d ,Strength:%d; ",
m_PRN,m_Elevation,m_Azimuth,m_Strength);
提示struct std::string has no member named printf
string str;
str.printf("PRN:%d ,Elevation:%d ,Azimuth:%d ,Strength:%d; ",
m_PRN,m_Elevation,m_Azimuth,m_Strength);
提示struct std::string has no member named printf
string类里没有printf()这个方法,printf()是C++标准库里面函数,直接调用就可以了