电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

人力资源-J2EE+招聘试题VIP免费

人力资源-J2EE+招聘试题_第1页
1/12
人力资源-J2EE+招聘试题_第2页
2/12
人力资源-J2EE+招聘试题_第3页
3/12
网龙笔试题:1、实现链表的创建,删除和逆序等。#include#includeusingnamespacestd;typedefstructstu{intdata;structstu*next;}node,list;node*creatlist(intn){node*h,*p,*s;h=newnode;h->next=NULL;p=h;cout<<“pleaseinput”<>s->data;s->next=NULL;p->next=s;p=s;}returnh;}voiddeletelist(node*s,inta){node*p;while(s->data!=a){p=s;s=s->next;}if(s==NULL){cout<<“noa”;}else{p->next=s->next;deletes;}}voiddisplay(node*h){h=h->next;while(h!=NULL){cout<data<next;}cout<next;q=p->next;while(q->next!=NULL){s=q->next;q->next=p;p=q;q=s;}q->next=p;h->next->next=NULL;h->next=q;returnh;}intmain(){intn;node*h;cout<<“pleaseinputthenumber:”;cin>>n;h=creatlist(n);display(h);cout<<“delete?”;cin>>n;deletelist(h,n);display(h);h=reverse(h);display(h);return0;}2、字符串逆序输入文件是in.txt,内容例如如下:hello,everyone.mynameisshen,he.ni,ne?则倒序之后为:everyone.hello,he.shen,isnamemyne?ni,源程序,自己实现的,算法是别人的。呵呵#include#include#include#include#includeusingnamespacestd;intmain(){ifstreaminFile;ofstreamoutFile;char*fName;string::size_typeb,e;charch;stringline;vectorsvec;inFile.open(”in.txt”);while(getline(inFile,line))//先获取每一行字符,并存入容器中{svec.push_back(line);}inFile.close();outFile.open(”out.txt”);vector::iteratoriter=svec.begin();while(iter!=svec.end()){b=0;e=(*iter).size()–1;while(b

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

人力资源-J2EE+招聘试题

确认删除?
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群