tpcall函數(shù) 為什么tp的count函數(shù)返回值是字符串類型?
為什么tp的count函數(shù)返回值是字符串類型?#include#include int count(s,c){int count=0 for(int i=0 i< strlen(s)i)if(s[
為什么tp的count函數(shù)返回值是字符串類型?
#include#include int count(s,c){int count=0 for(int i=0 i< strlen(s)i)if(s[i]==c)count return count}int main(){char*s=“welcome”char c=“e”printf(%s個%d個%cn”,s,count(s,c),c)返回0}