|
-
May 24th, 1999, 05:49 AM
#1
CString
how can I convert a string (say:CString strNumber = '12' into an integer (int nNumber = 12
-
May 24th, 1999, 06:12 AM
#2
Re: CString
call normal sscanf function giving CString as a first input parameter
-
May 24th, 1999, 06:14 AM
#3
-
May 24th, 1999, 08:33 AM
#4
Re: CString
Try int nNumber = atoi(strNumber.GetBuffer(0));
-
May 25th, 1999, 04:10 AM
#5
Re: CString
Use nNumber = atoi(strNumber);
It will convert string to Integer.
Use itoa(nNumber,chrNumber,10);
strNumber = chrNumber;
It will convert Number to string.
where chrNumber is an array like
char chrNumber[10];
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
|