Android下JNI使用stringstream

#include <iosfwd>
bool DrawClock(WORD wViewChairID, WORD wTimer){
	std::ostringstream sstr;
	sstr << wTimer;
	m_pClock->setString(sstr.str().c_str());//  2013-5-23 下午8:23:13
	m_pClock->setVisible(true);//  2013-5-23 下午8:49:41
	return true;
}


COCOS2D-X

stringstream是不存在的只有ostringstream可用。

你可能感兴趣的:(Android下JNI使用stringstream)