當(dāng)前位置:高考升學(xué)網(wǎng) > 招聘筆試題 > 正文
fpd2=fopen(“d2.dat”,“w”) ;
while(fscanf(fpd1,“%c”,&ch)!=EOF)
if (ch>='A'&& ch <='Z' ‖ ch>='a'&& ch<='z')
fprintf(fpd2,“%c”,ch);
fclose(fpd1);
fclose(fpd);
}
21:試將下列遞歸過程改寫為非遞歸過程。
void test(int &sum)
{ int x;
scanf(x);
if(x=0) sum=0 else {test(sum); sum+=x;}
printf(sum);
}
22:對(duì)給定記錄的序號(hào)k(1
23:Write a program to remove all trailing blanks and tabs from each line of input, and to delete entirely blank lines.
24:int func(int a)
{
int b;
switch(a)
{
case 1: 30;
case 2: 20;
case 3: 16;
default: 0
}
return b;
}
則func(1)=?
25:Write a function reverse(s) that reverses the character string s . Use it to write a program that reverses its input a line at a time.
2020年河北新聞網(wǎng)兩學(xué)一做
時(shí)間:2023-09-18 07:0:242020年河北新聞網(wǎng)兩學(xué)一做
時(shí)間:2023-09-15 11:0:59兩學(xué)一做學(xué)習(xí)教育知
時(shí)間:2023-09-21 06:0:302020年開展兩學(xué)一做學(xué)習(xí)教
時(shí)間:2023-09-19 21:0:30