delete the second character of a string?
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
delete the second character of a string?
Hi all,
I'm looking for a solution to retrieve ( or copy) the second character of a string. My program is: int iNum=0; char sNum[2]=""; //Somewhere in the program, the integer iNum=92 // Then sprintf (sNum,"%d",iNum); And I want to delete the first character of the string sNum, but i don't know how can i do? Or I want to retrieve the second character of the string sNum which is the value '2' in order to put it to another string, but i don't know how can i do? In sumarize, I want that sNum="2"; or another string ="2"; I don't want to get the whole value iNum. I only want the last value of it. Thanks for your help Bye batteur91 |
Bookmarks |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
P2P : Majors, FAI, Etat, "main dans la main"... | Toitoine | Actualité | 113 | 27-09-2004 19:28 |
W2K/XP "../ServicesPackFiles" Delete ? | wuub | Personnalisation de Windows | 12 | 16-03-2003 08:31 |
All times are GMT +2. The time now is 04:20.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.