What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C++ help :P

C++ help :P
Author: Message:
TheBlasphemer
Senior Member
****

Avatar

Posts: 714
Reputation: 47
37 / – / –
Joined: Mar 2004
RE: C++ help :P
First of all, what is s ?
a string? or a char *?
Furthermore, a variable definition in a for loop isn't valid C++ either (although it will compile)

string s;
int i;
int n=100;
for (i=1; i<=n; i++) {
  stringstream ss;
  i>>ss;
  s<<ss;
  s+=",";
}

I *think* that might work, although I don't really use those std things a lot ;)
[Image: theblasp.png]
08-13-2005 11:31 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
C++ help :P - by leito on 08-13-2005 at 11:08 PM
RE: C++ help :P - by TheBlasphemer on 08-13-2005 at 11:31 PM
RE: C++ help :P - by leito on 08-14-2005 at 01:04 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On