#include <stdio.h>intMain () {CharA=0, c=0; intb=0; for(; a!= $;) {scanf ("%c",&a); if(a!= +&&a!= $) {b++; } Else { if(b!=0) {printf ("%d", B); Break;} }} B=0; for(; a!= $;) {scanf ("%c",&a); if(a!= +&&a!= $) {b++; } Else { if(b!=0) printf ("%d", B); b=0; } } }
word length in sentence
#include <stdio.h>#include<string.h>intMain () {Chara[ in]="", x, y; intJ= (a[1]^a[2]), cz,count=3, p,q,shijian[6]; for(; a[0]!= the;) {scanf ("%s",&a); X=a[ the],y=a[ -]; if(a[ -]== $) {CZ=strlen (a)-3; J= (a[1]^a[2]); for(count=3; count<cz;count++) {J=j^A[count]; } //printf ("%d", j);p=j/ -; Q=j% -; Switch(p) { Case 0:p = -; Break; Case 1:p = the; Break; Case 2:p = -; Break; Case 3:p =Wuyi; Break; Case 4:p = the; Break; Case 5:p = -; Break; Case 6:p = Wu; Break; Case 7:p = -; Break; Case 8:p = About; Break; Case 9:p = $; Break; Case Ten:p = $; Break; Case One:p = the; Break; Case A:p = the; Break; Case -:p = the; Break; Case -:p = the; Break; Case the:p = -; Break; } Switch(q) { Case 0: q= -; Break; Case 1: q= the; Break; Case 2: q= -; Break; Case 3: q=Wuyi; Break; Case 4: q= the; Break; Case 5: q= -; Break; Case 6: q= Wu; Break; Case 7: q= -; Break; Case 8: q= About; Break; Case 9: q= $; Break; Case Ten: q= $; Break; Case One: q= the; Break; Case A: q= the; Break; Case -: q= the; Break; Case -: q= the; Break; Case the: q= -; Break; } if(p==x&&q==y) {Char*W; intCount=5, z=0; for(count=5; count>=0; count--) {W=(Char*) A +7+count; Shijian[count]=(int) *w- -; } } } } intxs; XS=Ten*shijian[0]+shijian[1]; if(xs==1) {printf ("09:%d%d:%d%d", shijian[2],shijian[3],shijian[4],shijian[5]); } Else if(1<xs< -) {xs=xs+8; printf ("%d:%d%d:%d%d", xs,shijian[2],shijian[3],shijian[4],shijian[5]); } Else{xs=xs+8- -; printf ("0%d:%d%d:%d%d", xs,shijian[2],shijian[3],shijian[4],shijian[5]); }}//
Signal Positioning error
Introduction to "NetEase" "homework" programming-C language Onge seventh week