I don't know if you have an answer yet, but I gave your question a shot and made this:
int main()
{
int m_iValue = 0;
scanf( "%i", &m_iValue );
{
char m_szBuffer[128]; // Note: We got a BIG buffer boy!
sprintf( m_szBuffer, "Value: %i
", m_iValue );
printf( m_szBuffer );
}
return 0;
}
It works perfectly fine; hope it helps!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…