题目内容

阅读以下函数说明和C语言函数,将应填入 (n) 处的字句写在对应栏内。 [说明1] 函数void fun(char*w,char x,int*n)用来在w数组中插入x,w数组中的数已按由小到大顺序存放,n指存储单元中存放数组中数据的个数,插入后数组中的数仍有序。 [C函数1] void fun(char*W,char x,int*n) int i,P; p=0; w[*n]=x; while(x>w[p]) (1) ; for(i=*n,i>p;i--)w[i]= (2) ; w[p]=x; ++*n; [说明2] 函数void revstr(char*s)将字符串s逆置。例如:字符串“abcde”,经过逆置后变为“edcba”。 [C函数2] void revstr(char*s) char*p,c; if(s==NULL)return; p= (3) ; /*p指向字符串s的最后一个有效字符*/ while(s<p) /*交换并移动指针*/ C=*s; (4) =*p; (5) =c;

查看答案
更多问题

既能活血,又能凉血的药是

A. 川芎、丹参
B. 五灵脂、血竭
C. 丹参、郁金
D. 血竭、穿山甲

Passage OneQuestions 26 to 28 are based on the passage you have just heard.

A. Because he registered the ". cn" for China and sent the first e-mail in China.
Because he set up China’s !first online comic dialogue website.
C. Because he provided integrated online services.
D. Because he was regarded as the father of Internet in China.

Passage OneQuestions 26 to 28 are based on the passage you have just heard.

A. www.chinadaily. com.
B. www.sina.com.
C. www. sohu. com.
D. www. Netease.com.

It’s a typical Snoopy card: cheerful message, bright colors, though a little yellow and faded now. Though I’ve received fancier, more expensive card over the years, this is the only one I’ve saved. One summer, it spoke volumes to me. I received it during the first June I faced as a widow to raise two teenage daughters alone. In all the emotional confusion of this sudden single parenthood. I was overwhelmed with, of all things, the simplest housework: leaky taps, oil changes, even barbeques (烧烤). Those had always been my husband’s jobs. I was embarrassed every time I hit my thumb with a hammer or couldn’t get the lawnmower (割草机) started. My uncertain attempts only fueled the fear inside me: How could I be both a father and mother to my girls Clearly, I lacked the tools and skills. On this particular morning, my girls pushed me into the living room to see something. (I prayed it wasn’t another repair job. ) The "something" turned out to be an envelope and several wrapped bundles on the carpet. My puzzlement must have been plain as I gazed from the colorful packages to my daughters’ bright faces. "Go ahead! Open them! "They urged. As I unwrapped the packages, I discovered a small barbecue grill(烧烤架) and all the necessary objects including a green kitchen glove with a frog pattern on it. "But why " I asked. "Happy Father’s Day! " they shouted together. "Moms don’t get presents on Father’s Day. " I protested. "You forgot to open the card. " Jane reminded. I pulled it from the envelope. There sat Snoopy, on top of his dog house, merrily wishing me a Happy Father’s Day. "Because," the girls said, "you’ve been a father and mother to us. Why shouldn’t you be remembered on Father’ s Day" As I fought back tears, I realized they were right, I wanted to be a "professional" dad, who had the latest tools and knew all the tricks of the trade. The girls only wanted a parent they could count on to be there, day after day, performing repeatedly the maintenance tasks of basic care and love. The girls are grown now, and they still send me Father’s Day cards, but none of those cards means as: much to me as that first one. Its simple message told me being a great parent didn’t require any special tools at all -just a willing worker.

答案查题题库