作业帮 > 综合 > 作业

一个c语言问题(英语大神进)

来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/09/20 17:55:33
一个c语言问题(英语大神进)
While we‘re on the subject of silly songs,another old standby is "This Old Man" for which the first verse is This old man,he played 1.He played knick-knack on my thumb.With a knick-knack,paddy-whack,Give your dog a bone.This old man come rolling home.Each subsequent verse is the same,except for the number and the rhyming word at the end of the second line,which gets replaced as follows: 2-shoe 3-knee 4-door 5-hive 6-sticks 7-heaven 8-pate 9-spine 10-shin Write a program to display all 10 verses of this song.
尴尬了,,英语不好c语言题目都看不懂
一个c语言问题(英语大神进)
叫你写一个程序来显示这个歌的歌词。这个歌每段只有前一句有变化,其他不变。变的方法是 1 - one,
2 -two ....10 - ten, 以及 thumb 依次变 shoe,knee,。。。shin。
程序如下。8 可能是 gate.

#include
main(){
char s[11][20]={" ","thumb","shoe","knee","door","hive","sticks","heaven", "gate", "spine", "shin"};
char n[11][8]={" ","one","two","three","four","five","six","seven","eight","nine","ten"};
int i;
for (i=1;i