關於programmming, 唔識點present個if then else statement

2007-12-15 7:09 pm
如果我想話

if ( the character after a word character =space ) then..

應該點講?

回答 (2)

2007-12-23 10:53 pm
✔ 最佳答案
例如用 C++
s 係string

for ( unsigned int i = 0; i < s.length()-1; i++){
if (s[i] != ' ' && s[i+1] == ' ')
/*
something
*/
}
參考: 自己
2007-12-22 8:44 pm
if the next character is a space then


收錄日期: 2021-04-27 14:58:33
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071215000051KK00907

檢視 Wayback Machine 備份