#include<stdio.h>
#include%<string.h>
main()
{char p1[10]="abc",p2[10]="ABC",str[50]="xyz":
strcpy(str+2,strcat(p1,p2)):
printf("%s\n",str);
}
输入一个无符号整数,然后按用户输入的代号,分别以十进制(代号D)、八进制(代号O)输出和十六进制(代号X)。
输入2个整数,输出它们的最小公倍数和最大公约数。
void main()
{int m,n,gbs,gys;
scanf("%d,9/6d",m,n);
gbs=m;
while(______)/*第一空*/
gbs=______;/*第二空*/
gys=______;/*第三空*/
printf("%d %d\n",gbs,gys);
下面程序由终端键盘输入一个文件名。然后把从终端键盘输入的字符依次存放到该文件中,用#作为结束输入的标志。
#include<stdlib.h>
{FILE*fp;
char ch,fname[10];
printf("Please input the file name.\n");
gets(fname);
if((fp=______)==NULL)/*第一空*/
{printf("()pen it error\n");______;}/*第二空*/
else(printf("Enter the content\n");
while((ch=getchar())!='#')
______;/*第三空*/
fclose(fp);
下面rotate函数的功能是:将n行n列的矩阵A转置为A。
#define N 4
void rotate(int a[][N])
{int i,j,t;
for(i=0;i<N;I++)
for(j=0;______;j++)/*第一空*/
{t=a[i][j];
______;/*第二空*/
a[j][i]=______;/*第三空*/
#include<string.h>
{int y=9;
for(;y>0;y--)
{if(y%03==0)
{printf("%d",--y);continue;}
printf("%d",--y);
int ast(int x,int y,int *cp,int *dp)
{*cp=x+y;*dp=x-y;}
{int a,b,c,d;
a=4;b=3;
ast(a,b,&C,&d);
printf("%d,%d\n",c,d);
设a、b、c为整型数,且a=2、b=3、c=4;则执行完下列语句后a的值是______。
a*=16+(b++)-(++c);
#inclucde<stdio.h>
void prly(int *x)
{prinlf("%d\n",++*x);}
{int a=25;
prty(&a):
printf("%d\n",a):
热门试卷
经济师初级(经济基础知识)模拟试卷5
经济师初级经济基础知识(商品经济的基
经济师(初级)工商管理专业知识与实务
初级经济师试题及答案3(公路运输)
经济师初级人力资源管理专业知识与实务
初级经济师《工商专业》全真模拟试卷(
初级经济师《经济基础知识》考前突破试
订单号:
遇到问题请联系在线客服