|
From: SourceForge.net <no...@so...> - 2004-07-24 08:15:43
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2680270 By: dit6a9 I have no experience in programming in C++ so maybe this is a very stupid question. I'm trying to program a mehtod which returns an string. More or less it is something like that: std::string sOutput; for(int i=0; i<iCount; i++) { sOutput += oData[i]; } return sOutput; where oData is declared this way: int oData[100]; It doesn't work. I thought the "+" operator was going to convert the int values to strings in order perform de concatenation, but it seems this is not the way it works. How can I construct this string then? Thanks in advance. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |