Communauté Informatique NDFR.net : delete the second character of a string? - Programmation (C/C++, Delphi, VB, etc.)
 
delete the second character of a string?
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 28-01-2004, 20:53
batteur91 batteur91 is offline
Membre junior
 
Join Date: 28-01-2004
Posts: 3
Re : delete the second character of a string?

thanks but, this is not enough,
In my program, sNumis eqaul to "64" for example(a numeric value).
sNum is a variable; that means it's gonna change during the execution. So I only can declare the variable sNum at the beginning of my program. I can't declare it as you did below. (sNum[0]='b' and sNum[1]='o').
main()
{
char sNum[1],res;
/*sNum = "bo"*/
sNum[0]='b';
sNum[1]='o';
/* res is the second character of sNum*/
res=sNum[1];

}
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 15:33.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.