题目内容

编程:输入一个int范围内的十进制整数,输出其对应的二进制数。部分程序如下:#include#include#define N 40void DToB(int n, char str[]);int main(void){char str[N];int n;scanf("%d", &n);DToB(n, str);puts(str);return 0;}void DToB(int n, char str[]){int len = 0;while( n>0){len++;n /= 2;}str[len] = '\0';strrev(str);}

查看答案
更多问题

编程:输入正整数n(0 < n <= 10),然后输入n个字符串,输出字典序最大的字符串。部分程序如下:#include#include#define N 40int main(void){int i,n;char max[N] = "";char str[N];scanf("%d", &n);getchar();for(i = 1; i <= n; i++){gets(str);if( strcmp(str, max) > 0 )}puts(max);return 0;}

Which phrase shares the same meaning as the underlined one?It will be an exciting party, as we have prepared a variety of programmes.

A. much
B. all sorts of
C. kind of
D. sort of

Miss Linda Colam ()the honour of your presence at the Opening Ceremony of new company.

A. remains
B. renews
C. requests
D. requires

We are looking forward to your ().

A. come
B. comes
C. coming
D. came

答案查题题库