题目内容

请补充main函数,该函数的功能是:把字符串str中的字符向前移动一位,原来的第一个字符移动到字符串尾,结果仍然保存在原字符串中。 例如,输入“how do you do”,则结果输出“ow do you doh”。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在 main函数的横线上填入所编写的若干表达式或语句。 试题程序: #include <stdio. h> #define N 80 main() char str[N], ch; int i; clrscr (); printf("\n Input a string:In"); gets (str); printf("\n*** original string ***In"); puts (str); ch=str [0]; for (i=0; 【1】 ; i++) str [i]=str [i+1]; 【2】 ; printf("\n *** new string ***\n"); puts (str);

查看答案
更多问题

An old friend from abroad, whom I was expecting to stay with me, (36) from the airport to tell me that he had arrived. I was still at the office at the time, but I had made (37) for his arrival. After explaining where my new flat was, I told him that I had left the key under a piece of stone near the door. As I was likely to be at home rather late, I advised him to go into the (38) and help himself to food and drink. Two hours later, my friend telephoned me from the flat. At the moment, he said, he was listening to some of my (39) after having just had a truly (40) meal. He had found a pan on the gas (41) and fried two eggs and had helped himself to some cold chicken from the (42) . Now be said, he was drinking a glass of orange (43) and he hoped I would join him. (44) , he answered that he had not been able to find the key under the piece of stone, (45) I listened to all this in astonishment. (46)

采用电子计算机进行会计核算的单位,应当保存打印出的纸质会计档案。 ( )

A. 对
B. 错

When this semester is over, ___________________________________________________________ (我就能抽空读这部小说了).

It is time the whole society began to take action to _____________________________________________(使我们的环境免于毁灭).

答案查题题库