CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: int array..

Threaded View

  1. #7
    Join Date
    Aug 2001
    Location
    Texas
    Posts
    645

    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
  •  





Click Here to Expand Forum to Full Width

Featured