用''括起来的只能有一个字符,如'c', 'c['就要出错,当你要使用某个字符变量时,直接用变量名就行了,不用使用单引号 如有 char ch='b';在使用时这样就行了 if ('a'< ch)你这三行这样改就行了11: if('A
'<=ch[m] && ch[m]<='Z'&&'a'<=ch[m] && ch[m]<='z')13: if('0'<=ch[m] && ch[m]<='9')15: if(ch[m]==' ')顺便说一句,在C
语言类似于 a<b<c 这种表达式不能直接这么写要写成以下形式:a<b && b<c

else if((a[i]=='/') && (a[i£«1]=='*'))代码错误 too many characters in constant,求指导。

参考答案与解析:

相关试题

I'mnotsureaboutthemeaningoftheword.You'd

[单选题]I'mnotsureaboutthemeaningoftheword.You'dbetterlookitupina____.A.letterB.dictionaryC.postcardD.notice

  • 查看答案
  • £­£­I'm sorry, but I don't quite follow

    [单选题]--I'm sorry, but I don't quite follow you. Did you say you wanted to return on September 20?--Sorry, I ____ myself clear. We want to return on October 20.A. hadn't madeB. wouldn't makeC. don't makeD. haven't made

  • 查看答案
  • Besides, do not forget to appreciate the ''spiritual bond'' between people. I�

    [问答题]Besides, do not forget to appreciate the ''spiritual bond'' between people.

  • 查看答案
  • I'd love to stay in the team but 1 don't

    [单选题]I'd love to stay in the team but 1 don't like those players in control of_________ they can do.A. whatB. whoeverC. whomeverD. however

  • 查看答案
  • Mary: I'm sorry, but I can't seem to fin

    [单选题]Mary: I'm sorry, but I can't seem to find that tape you lent me. I must have lost it.Susan: Oh no! _________.Mary: But don't worry. I'll buy you a new one.A. Don't do thatB. What a shameC. Don't say thatD. How pity it is

  • 查看答案
  • 下列语句段输出字符'*'的个数为()。int i=100;while(1){ i

    [单选题]下列语句段输出字符'*'的个数为( )。 int i=100; while(1){ i--; if(i==0) break; cout<<'*'; }A.101个B.100个C.99个D.98个

  • 查看答案
  • I've never been to Beijing, but it's the

    [单选题]I've never been to Beijing, but it's the place __?I'veneverbeentoBeijing,butit'stheplace_______.A)whereI'dliketovisitB)inwhichI'dliketovisitC)ImostwanttovisitD)thatIwanttovisititmost

  • 查看答案
  • I'm sorry I'm late. <br />- _________

    [单选题]I'm sorry I'm late. - _________A.No trouble.B.All rightC.It doesn't matterD

  • 查看答案
  • I'm afraid I can't do as you said.

    [问答题]I'm afraid I can't do as you said.

  • 查看答案
  • 下列语句段将输出字符'*'的个数为()。int i=100;while(1){i

    [单选题]下列语句段将输出字符'*'的个数为( )。 int i=100; while(1) { i--; if(i==0) break; cout<<'*'; }A.98个B.99个C.100个D.101个

  • 查看答案