數據結構C語言版(做業)109頁

1)統計字符串中不一樣字符出現的次數,要求 即便屢次查找字符時 時間複雜度仍爲O(n)ios #include<iostream> using namespace std; char s; int a[62]={0}; int main(){ cout<<"請輸入一串字符(#結尾):"; cin>>s; while(s!='#') { if(s<='9'&&s>='0')
相關文章
相關標籤/搜索