欧美色欧美亚洲高清在线观看,国产特黄特色a级在线视频,国产一区视频一区欧美,亚洲成a 人在线观看中文

  1. <ul id="fwlom"></ul>

    <object id="fwlom"></object>

    <span id="fwlom"></span><dfn id="fwlom"></dfn>

      <object id="fwlom"></object>

      c語言編程 有一篇文章共有3行文字每行80個(gè)字符要求分別統(tǒng)計(jì)出其中英文字母數(shù)字空

      時(shí)間:2019-05-14 20:13:15下載本文作者:會(huì)員上傳
      簡介:寫寫幫文庫小編為你整理了多篇相關(guān)的《c語言編程 有一篇文章共有3行文字每行80個(gè)字符要求分別統(tǒng)計(jì)出其中英文字母數(shù)字空》,但愿對(duì)你工作學(xué)習(xí)有幫助,當(dāng)然你在寫寫幫文庫還可以找到更多《c語言編程 有一篇文章共有3行文字每行80個(gè)字符要求分別統(tǒng)計(jì)出其中英文字母數(shù)字空》。

      第一篇:c語言編程 有一篇文章共有3行文字每行80個(gè)字符要求分別統(tǒng)計(jì)出其中英文字母數(shù)字空

      C語言編程 有一篇文章,共有3行文字,每行80個(gè)字符。要求分別統(tǒng)計(jì)出其中英文字母,數(shù)字,空...2種做法,1種用單字符來讀取輸入,1種用字符串來讀取輸入。1.#include int main(){ int i, upper, lower, digit, space, other;char c;upper = lower = digit = space = other = 0;for(i = 0;i < 3;i++)getchar())!= 'n')

      while((c =

      if('A' <= c && c <= 'Z')

      else if('a' <= c &&

      else if('0' <= c

      else if(c == upper++;

      c <= 'z')lower++;

      && c <= '9')' ')space++;

      digit++;

      else other++;printf(“upper:%dnlower:%dndigit:%dnspace:%dnother:%dn”, upper, lower, digit, space, other);return 0;} 2.#include int main(){ int i, j, upper, lower, digit, space, other;char str[3][81];upper = lower = digit = space = other = 0;for(i = 0;i < 3;i++){

      for(j = 0;str[i][j];j++)

      gets(str[i]);

      if('A' <= str[i][j]

      upper++;&& str[i][j] <= 'Z')

      else if('a' <= str[i][j] && str[i][j] <= 'z')lower++;

      else if('0' <= str[i][j] &&

      digit++;

      else if(str[i][j] == ' ')str[i][j] <= '9')

      space++;

      else

      other++;}printf(“upper:%dnlower:%dndigit:%dnspace:%dnother:%dn”, upper, lower, digit, space, other);return 0;}提問人的追問

      2009-05-02 11:48

      “for(j = 0;str[i][j];j++)”這一句沒有限制條件吧!是不是應(yīng)該寫成“for(j=0;str[i][j]!='