View Single Post
  #7  
Old 28-01-2004, 20:58
Cougar's Avatar
Cougar Cougar is offline
Membre senior
 
Join Date: 16-09-2001
Location: Orléans
Age: 40
Posts: 3,850
Send a message via MSN to Cougar
Re : delete the second character of a string?

sNum = "what you want when you want where you want"

to get the n-ième char of a string you do : sNum[n-1]

for exemple, if sNum is "to" ,you declare a char (here res) and you write res=sNum[1] to get the second character of the string...

Or use a int instead of string and do (name_of_int)%10 to get the unit of the integer.
__________________
Reply With Quote