View Single Post
Join Date: Jun 2008
Posts: 92
Reputation: JackDurden is an unknown quantity at this point 
Solved Threads: 0
JackDurden JackDurden is offline Offline
Junior Poster in Training

Using string as char array

 
0
  #1
Dec 2nd, 2008
How would I delete one char from a string?

  1. string aWord = "question?";
  2.  
  3. while(aWord[i])
  4. {
  5. if(isalpha(aWord[i]))printf ("character %c is alphabetic\n",aWord[i]);
  6. else
  7. delete[i]aWord;
  8. i++;
  9. }
Reply With Quote