皮皮学,免费搜题
登录
搜题
【简答题】
所属年份: 2010.9;2012.3;2013.3;2014.3 给定 , 函数 fun 的功能是将不带头结点的单向逆置 , 即若原中从头至尾结点数据域依次为 2,4,6,8,10, 逆置后 , 从头至尾结点数据域依次为 10,8,6,4,2 。 请在程序的下画线处填入正确的内容并把下画线删除 , 使程序得出正确的结果。 注意:部分源程序在文件 BLANK1.C 中。 请勿改动 main 函数和其他函数中的任何内容,仅在函数 fun 的横线上填入所编写的若干表达式或语句。 #include #include #define N 5 typedef struct node { int data; structnode *next; } NODE; /**********found**********/ __1__ * fun(NODE *h) { NODE *p, *q,*r; p = h; if (p == NULL) return NULL; q =p->next; p->next =NULL; while (q) { /**********found**********/ r =q->__2__; q->next =p; p = q; /**********found**********/ q = __3__ ; } return p; } NODE *creatlist(int a[]) { NODE *h,*p,*q; int i; h=NULL; for(i=0;i data=a[i]; q->next= NULL; if (h ==NULL) h = p = q; else { p->next = q; p = q; } } return h; } void outlist(NODE *h) { NODE *p; p=h; if(p==NULL) printf("The list isNULL!\n"); else { printf("\nHead "); do { printf("->%d", p->data);p=p->next; } while(p!=NULL); printf("->End\n"); } } main() { NODE *head; int a[N]={2,4,6,8,10}; head=creatlist(a); printf("\nThe original list:\n"); outlist(head); head=fun(head); printf("\nThe list after inverting :\n"); outlist(head); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【判断题】眉毛是影响容貌的最重要的一环。它们不仅框出了脸型,也可以成就或者毁掉你的整个造型,对一个人的气质有很大影响。
A.
正确
B.
错误
【单选题】In some situations, the interpretations of the Rules of Conduct permit former partners to have relationships with a client of the firm without affecting the firm's independence. Which of the following...
A.
The former partner works in the maintenance department of an audit client of his former firm.
B.
The former partner's grandson works in the warehouse of an audit client of his former firm.
C.
The former partner was held out as an associate of the firm.
D.
The former partner purchased 5% of the stock of an audit client of his former firm.
【单选题】● A (72) consists of the symbols, characters, and usage rules that permit people to communicate with computer. (72)
A.
programming language
B.
network
C.
keyboard
D.
display
【单选题】关于推销商务站点的途径,下列哪个说法是不正确的()
A.
在互联网上的知名网站刊登广告来推广自己的网站,应选择和本企业相关程度较高的网站刊登广告,方能有较佳的广告效果。
B.
在互联网上有大量的讨论组或新闻组,其中包含各式各样的主题,由于每个组都有许多人在上面发表文章,因此在其中发布广告这也是增加网站知名度的好渠道。
C.
在网站上提供免费服务,虽然要付出时间和精力,但其在增加站点流量上的功效可以得到回报。
D.
与别的站点交换超级链接,以减少站点推广的费用。
【单选题】A(72)consists of the symbols, characters, and usage rules that permit people to communicate with computer.
A.
programming language
B.
network
C.
keyboard
D.
display
【单选题】Interpretations to the Rules of Conduct permit a CPA firm to do both bookkeeping and auditing for the same private company client if three criteria are met. Which of the following is not one of those ...
A.
The client must accept full responsibility for the financial statements.
B.
The client is required to file an annual report, including audited financial statements, with the Securities and Exchange Commission.
C.
The CPA must not assume the role of employee or of manager.
D.
The CPA must follow applicable auditing standards.
【判断题】眉毛是影响容貌的最重要的一环。它们不仅框出了脸型,也可以成就或者毁掉你的整个造型,对一个人的气质有很大影响。
A.
正确
B.
错误
【单选题】Which statement about the Navigation Rules is TRUE ().
A.
The rules require vessels to comply with Traffic Separation Scheme regulations
B.
The rules use the term safe speed
C.
The Rules permit a stand-on vessel to take action prior to being in extremis.
D.
All of the above are correct
【单选题】关于推销商务站点的途径,下列哪个说法是不正确的()
A.
与别的站点交换超级链接,以减少站点推广的费用
B.
在互联网上的知名网站刊登广告来推广自己的网站,应选择和本企业相关程度较高的网站刊登广告,方能有较佳的广告效果
C.
在网站上提供免费服务,虽然要付出时间和精力,但其在增加站点流量上的功效可以得到回报
D.
在互联网上有大量的讨论组或新闻组,其中包含各式各样的主题,由于每个组都有许多人在上面发表文章,因此在其中发布广告这也是增加网站知名度的好渠道
【简答题】Identifying different stress patterns when the same word is used as a noun or a verb. (听录音,注意以下例子中重点单词的重读位置是否因词性的不同而改变) Examples: 1 They won the contract to build the new museum, 2 As they cool, metal...
相关题目: