例子: void stringEvaluation(char *name){
if (strstr(name, "Tall") != NULL)
--here I would like to print only "John Doe"--
}
int main{
char name[160 + 1];
scanf("%[^\n]%*c", name
我嘗試在符號'@'之後獲得值並對其進行計數。但是這段代碼並沒有給出正確的結果。如何解決它? $t="Hi, I invite @nina and @nana to come to my party tomorow";
$arr=explode(' ', $t);
foreach($arr as $user) {
$result=strstr($user, '@');
$total = $c
我想搜索是否有任何曲目可用的曲目數組。當我總是給出任何輸入strstr()函數返回false。如果我使用else塊,則每次其他塊都正在執行。 char tracks[][80] = {
"I left my heart in Harvard Med School",
"Newark, Newark - a wonderful town",
"Dancing with