C primer plus 第六版第七章編程練習參考答案

6.編寫程序輸入,讀到#中止,報告ei出現的次數。web #include <stdio.h> #define STOP '#' int main() { int count=0; char ch,ch1; while ((ch=getchar()) !=STOP) { if (ch=='e') { ch1=ch; continue; } if (ch1=='e
相關文章
相關標籤/搜索