Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想显示一些浮点数作为视频中的人数。这是一个例子。
有什么方法可以做到这一点吗?
您可以将 a 转换float为std::string这样的:
float
std::string
std::stringstream ss; ss << 0.5f; std::string s = ss.str();
然后你可以传递s给 PutText
s