[工學(xué)]c程序設(shè)計(jì)第六章課件
本文檔由 qianqianzhi258 分享于2012-10-09 08:05
[工學(xué)]c程序設(shè)計(jì)第六章課件c語言程序設(shè)計(jì)循環(huán)控制語句#include <stdio.h> int main() /* count digits, white space, others */ { int c, i, nwhite, nother, ndigit[10]; nwhite = nother = 0; for (i = 0; i < 10; i++) ndigit[i] = 0; while ((c = getchar()) != eof) { switch (c) { case ´0´: case ´1´: case ´2&acut..