|
-
October 18th, 2007, 01:41 PM
#7
Re: int array..
If your talking about a string reprsentation of an integer value, then you
would have this for a "112"
Code:
char myString[size];
myString[0] = 0x31 // "1"
myString[1] = 0x31 // "1"
myString[2] = 0x32 // "2"
myString[3] = 0x00 // null terminator
String data is actually stored with the least significate byte in the lowest
byte in storage. The start of the string is on the left side.
However, since you are working in C++, I would use std:string. It makes
working with strings very easy. It does all the string managment.
Last edited by cvogt61457; October 18th, 2007 at 01:45 PM.
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
|