C/C++ link
ITWeb/개발일반 2013. 3. 12. 13:01http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.cbc%2Fcbc.htm
'c++'에 해당되는 글 4건C/C++ linkITWeb/개발일반 2013. 3. 12. 13:01http://publib.boulder.ibm.com/infocenter/zos/v1r13/index.jsp?topic=%2Fcom.ibm.zos.r13.cbc%2Fcbc.htm convert int to string in c++ITWeb/개발일반 2013. 2. 13. 13:49Reference URL : http://www.cplusplus.com/articles/D9j2Nwbp/ [Convert int to string] int convInt; stringstream convStr; string str; convInt = 1024; convStr << convInt; str = convStr.str(); c++ string replaceITWeb/개발일반 2013. 2. 1. 13:08[Reference URL]
str_vector_t sReplVector; str_vector_const_iterator_t sIterator; std::string findStr = ""; int32_t pos = 0; for ( sIterator = sQueryVector1.begin(); sIterator != sQueryVector1.end(); sIterator++ ) { findStr = sIterator->c_str(); pos = findStr.find("INSERT INTO Tbl1"); LOGDEBUG("[ASIS][sQueryVector1][%s]", sIterator->c_str()); if ( pos > 0 ) { findStr.replace(pos, 17, "INSERT INTO Tbl2"); sReplVector.push_back(findStr); LOGDEBUG("[TOBE][sQueryVector1][%s]", findStr.c_str()); } } General example by cpluscplus.com // replacing in a string
|