// stdafx.cpp : Ç¥ÁØ Æ÷ÇÔ ÆÄÀÏÀ» Æ÷ÇÔÇÏ´Â ¼Ò½º ÆÄÀÏÀÔ´Ï´Ù. // GameLogAnalyzer.pch´Â ¹Ì¸® ÄÄÆÄÀÏµÈ Çì´õ°¡ µË´Ï´Ù. // stdafx.obj´Â ¹Ì¸® ÄÄÆÄÀÏµÈ Çü½Ä Á¤º¸¸¦ Æ÷ÇÔÇÕ´Ï´Ù. #include "stdafx.h" #include std::string GetMoneyString(unsigned long dwMoney) { std::string strTemp; char strBuff[128]; sprintf(strBuff, "%u", dwMoney); strTemp = strBuff; if( strTemp.length() > 3 ) { for( int i = (int)strTemp.length() - 3 ; i > 0 ; i -= 3 ) { strTemp.insert( i, "," ); } } return strTemp; }