 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Question_dev
Joined: 24 Aug 2007 Posts: 88
|
Posted: Thu Jun 12, 2008 1:01 am Post subject: ++ an int in a string |
|
|
Hi,
I've searched a lot but i can't find it :
I got this :
| Code: | | sprintf(O, "%s", config.C10); |
i want to do somethig like
so that 10 becomes 11, 11 becomes 12, etc
Tnx in advance |
|
| Back to top |
|
 |
Insert_witty_name
Joined: 10 May 2006 Posts: 376
|
Posted: Thu Jun 12, 2008 1:06 am Post subject: |
|
|
Why is the int stored in a string anyway?
If, for whatever reason you store the int as a string, can't you increase it before you store it?
I think your logic is out - maybe if you told us what you wanted to achieve we could better help you.
Also, this isn't PSP related in the slightest... |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|