97在线观看视频,很黄很色120秒试看,久久久久久久综合日本,1000部精品久久久久久久久,欧美freesex10一13

 自考網(wǎng)
 自考動態(tài)  報考指南  考試政策  復(fù)習(xí)指導(dǎo)  課程設(shè)置  自考試題  自考就業(yè)  考生故事  助學(xué)單位  自考論壇 
 公共課: 真題|模擬題|筆記串講  經(jīng)濟類: 真題|模擬題|筆記串講  法學(xué)類: 真題|模擬題|筆記串講  文學(xué)類真題|模擬題|筆記串講  高校招生  網(wǎng)絡(luò)課堂

2003年7月高等教育自學(xué)考試高級語言程序設(shè)計(一)試題

作者:   發(fā)布時間:2009-02-08 16:10:49  來源:
  • 文章正文
  • 資料下載
  • 自考圈
  • 論壇
課程代碼:00342

二、填充題(每空5分,共30分)
1.階乘n!定義如下:
 n!=     
 函數(shù) fact 計算階乘n!。請在空格上填上適當(dāng)內(nèi)容。
 fact (value)
 int value;
 {
   if (value<0)
   {
    printf (“\n Argument Error ! \n”);
    return (-1);
   }
   else if (value= = (1)___________|| value= =0)  return  (1);
     else return ( (2)___________* fact (value-1));
 }
2.下面的程序輸出:
There are two duck on the tree. five duck on the stream.
在程序中填上正確語句至空格,使之能正確運行。
# include 
# define DUCK   “five duck”
main ()
{
  char *str1= “There are two duck on the tree.”;
  char *str2= “There is a chicken on the stream.”;
  char str3  [80];
  strcpy (str3, str1);
  strcat (str3, DUCK);
  strcat (str3, str2+ (3)___________);
  prinft (“str3=%s”, (4)___________);
}
3.設(shè)有一函數(shù),其代碼如下:
int power (x,n)
int x,n;
{
  int i,p;
  for (p=1,i=1; i<=n;++i )
   p=p*x;
  return(p);
}
現(xiàn)要求取消變量i,重寫該函數(shù)如下,請在空白上填上適當(dāng)內(nèi)容。
power (x,n)
int x,n;
{
 int p;
  for ( (5)___________; n>0; (6)____________)
   p=p*x;
  return (p);
} 三、程序分析題(共22分)
1.閱讀下列程序,回答問題。(10分)
# include 
main ()
{
  int a,b,m,n;
  scanf (“%d%d \n”, %a, %b);
  m=1;
  n=1;
  if (a>0) m=m+n;
  if (a  else if (a==b) n=5;
    else n=m+n;
  printf (“m=%d n=%d\n”, m, n);
}
當(dāng)輸入為: -1 -2<回車>時,寫出程序的運行結(jié)果。
熱門資料下載:
<
自考最新熱貼:
【責(zé)任編輯:育路編輯  糾錯
【育路網(wǎng)版權(quán)與免責(zé)聲明】  
    ① 凡本網(wǎng)注明稿件來源為"原創(chuàng)"的所有文字、圖片和音視頻稿件,版權(quán)均屬本網(wǎng)所有。任何媒體、網(wǎng)站或個人轉(zhuǎn)載、鏈接、轉(zhuǎn)貼或以其他方式復(fù)制發(fā)表時必須注明"稿件來源:育路網(wǎng)",違者本網(wǎng)將依法追究責(zé)任;
    ② 本網(wǎng)部分稿件來源于網(wǎng)絡(luò),任何單位或個人認為育路網(wǎng)發(fā)布的內(nèi)容可能涉嫌侵犯其合法權(quán)益,應(yīng)該及時向育路網(wǎng)書面反饋,并提供身份證明、權(quán)屬證明及詳細侵權(quán)情況證明,育路網(wǎng)在收到上述法律文件后,將會盡快移除被控侵權(quán)內(nèi)容。
自考報名咨詢電話:010-51291357 51291557
熱點專題
 
 自考熱點關(guān)注
                        MORE>>
學(xué)員報名服務(wù)中心: 北京北三環(huán)西路32號恒潤中心18層1803室(交通位置圖
咨詢電話:北京- 010-51268840/41 傳真:010-51418040 上海- 021-51567016/17
育路網(wǎng)-中國新銳教育社區(qū): 北京站 | 上海站 | 鄭州站| 天津站
本站法律顧問:邱清榮律師
1999-2010 育路教育版權(quán)所有| 京ICP證100429號