|
-
Aug 1st, 2002, 08:28 PM
#1
Thread Starter
Fanatic Member
int to string
im storing values in the registry by number, and i can loop through off the entries calling them by number. but for the loop since its an integer, how do i convert it to a string?
Code:
for(int i=1;i<=num;i++){
tmp = i;
registry.Read(tmp,title);
lst_favs.AddString(title);
}
thanks
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Aug 1st, 2002, 10:58 PM
#2
PowerPoster
You mean string from <string> or a simple char array?
If it's an array of characters, you can use itoa().
PHP Code:
char buffer[20];
itoa(mynumber, buffer,10);
-
Aug 2nd, 2002, 10:35 AM
#3
Thread Starter
Fanatic Member
ok ill try that, thanks.
i think itll accept a char array
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|