void func(char *s) { int sum = 0; while(*s) sum += (*s++ - 96); printf("%d",sum); } int main() { chvoid func(char *s) {int sum = 0;while(*s)sum += (*s++ - 96);printf("%d",sum);}int main() {char s[27];scanf("%s",s);func(s);}我想问一下这段程序
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/10 21:53:23
xSnA}Im1P^D@jSjbH6-RV4)4B
t|3[,^xd3{s3Xݛ"YZ=PW#Duu,y?yyl8oGf^?1x3soqF}DJ(8\i
#)qrɧ>{_
Nq^Tw_e4ڴ/Qۄ+#2NGȍq- MOJ41K`M.^Ihذ1L^U_:4yZY X0pE)ЀNJYUr
8;T[c
OP*5^k5YI0)WG1.
5gi
m;g@v'4z
o%h^뻰̑mNu0c3ͬ&ʺUY9g/kJ>W̑YUlMUO[u>ةSb>mnuTÑ`KNE.+@VppTi}Abk ;`sRJ\_{!+JˡG&fĀ:u BѠs