《2022年IT公司面试题 .pdf》由会员分享,可在线阅读,更多相关《2022年IT公司面试题 .pdf(27页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、1.下面几个平台用什么传递参数IA32,IA64,ARM,EM64T 2.RISC 机器的特性3.几种接口类型:FSB,PCI,ISA 和 33M,800M,8M配对.(记不清了,反正有compatiable 这个词)4.算 cache-hit ratio 5.rtp/rtsp/rtcp 的指什么?什么场合应用?6.cpu 取指时,指令不再cache中,也不再内存中,而在辅存中,问这整个过程中硬件和软件的行为是什么?7.折半查找的复杂度,证明8.sizeof()和 strlen()的使用.9.顺序存储结构的优点,散列法的思想是什么?10.并发进程相关知识11.下面的程序能编译通过么?#incl
2、ude int main(void)unsigned long long a=0 xAAAAAAAABBBBBBBB;unsigned int b=0 xCCCCCCCC;printf(you have%d RMA,right?n;printf(valuea:%lx,valueb:%lxn,a,b);12.汉罗塔算法,不能递归.13.插入一个 usb设备描述驱动自动装载的过程。-发信人:miser(大灰狼),信区:job 标 题:去神州数码笔试随笔发信站:饮水思源(2004 年 12 月 22 曰 21:59:10 星期三)交大的 ss,去神州数码可以乘855,终点站,再向西走100 米左右吧
3、,可以看到神州数码的大牌子了。我考的是软件研发,卷子分java 和 c/c+两部分,如果你只会其中的一部分,我建议你就不用去了,又累,还可能被bs。我只会做 c/c+部分,考了些c+的一些基本概念,数据结构的基本题(都是选择题)。数据库考了SQL 语言中的一些如select,update,join 等。大题目主要考了三道:(1)为什么在编译时其它文件中的定义的函数要用extern c 说明(2)看程序(求输入数的均值)(3)string 类的构造函数,自引用函数,析构函数,重载赋值函数(实际上和类默认生成的几个函数差不多)题目还是比较简单的,祝好运。发信人:GlobalRainy(Dirich
4、let,Johann Peter Gustav Lejeune),信区:C 名师资料总结-精品资料欢迎下载-名师精心整理-第 1 页,共 27 页 -标 题:SAP 试题(不完整),作为周末讨论话题吧发信站:饮水思源(2004 年 03 月 19 曰 23:30:13 星期五),站内信件1.Below is usual way we find one element in an array:const int*find1(const int*array,int n,int x)const int*p=array;for(int i=0;i n;i+)if(*p=x)return p;+p;re
5、turn 0;In this case we have to bear the knowledge of value type int,the size of array,even the existence of an array.Would you re-write it using template to eliminate all these dependencies?2.Assume you have a class like class erp HR*m_hr;FI*m_fi;public:erp()m_hr=new HR();m_fi=new FI();erp();if new
6、FI()failed in the constructor,how can you detect this problem and release the properly allocated member pointer m_hr?3.Check the class and variable definition below:名师资料总结-精品资料欢迎下载-名师精心整理-第 2 页,共 27 页 -#include#include using namespace std;class Base public:Base()coutBase-ctorendl;Base()coutBase-dtor
7、endl;virtual void f(int)coutBase:f(int)endl;virtual void f(double)coutBase:f(double)endl;virtual void g(int i=10)coutBase:g()iendl;class Derived:public Base public:Derived()coutDerived-ctorendl;Derived()coutDerived-dtorendl;void f(complex coutDerived:f(complex)endl;virtual void g(int i=20)coutDerive
8、d:g()iendl;Base b;Derived d;Base*pb=new Derived;Select the correct one from the four choices:Coutsizeof(Base)endl;A.4 B.32 C.20 D.Platform-dependent Coutsizeof(Base)f(1.0);A.Derived:f(complex)B.Base:f(double)pb-g();A.Base:g()10 B.Base:g()20 C.Derived:g()10 D.Derived:g()20 4.Implement the simplest si
9、ngleton pattern(initialize if necessary).5.Name three sort algorithms you are familiar with.Write out the correct order by the average time complexity.6.Write code to sort a duplex direction linklist.The node T has overridden 名师资料总结-精品资料欢迎下载-名师精心整理-第 3 页,共 27 页 -the comparision operators.发信人:xiaokan
10、(笑看风云),信区:C 标 题:Re:SAP 试题(不完整),作为周末讨论话题吧发信站:饮水思源(2004 年 03 月 20 曰 11:51:48 星期六),站内信件1、Use template function template InputIter find_imp(InputIter begin,InputIter end,const T&ct)InputIter iter=begin;while(iter!=end)&(*iter)!=ct)iter+;return iter;2、2 methods can take.One is to use try catch idiom,the
11、other is to use intelligent pointers,such as auto_ptr.I prefer auto_ptr.3、Have been discussed a lot.4、See GoFs.Another recommendable different implemented example,ACE_Singleton,u can look up ACE library 5、Have been discussed a lot.6、Have been discussed a lot.【在 GlobalRainy(Dirichlet,Johann Peter Gus
12、tav Lejeune)的大作中提到:】:1.Below is usual way we find one element in an array:const int*find1(const int*array,int n,int x):const int*p=array;:for(int i=0;i 1234 6)在文件(调用库函数创建的,不用考虑数据库的方式)中读入信息(包括职工号,职工产量).根据输入的信息(包括职工号,职工产量).检测是否有相同的职工号记录,如有,则增加其产量.如没有,则创建新的记录.最后的记录排序的依据是职工产量(降序),如果产量相同,则按职工号(升序).(具体的题目
13、记不太清了,这个题目有点长.哪位也去笔试了.请修正一下子).2.面试同一个地方.面试官的要求是一分钟给出求相似度的算法.)(幸好听老师讲过中文分词,要不然当场就挂了)2)写出二分查找的代码.3)将上述代码通用化.(在 C 的规范内.就是我前面所的那个问题)4)写出在母串中查找子串出现次数的代码.(不顾及效率时好说.当时一不留神把KMP 说了出来,结果又让我描述整个过程.汗.只好从头又学了.不过没有冷场,边学边说.hoho)5)如何看待在函数中定义很多静态变量.6)写出 quick_sort 7)写出查找从一个集合中输出所有子集合的算法.8)有关于各种类型指针.各种数据类型的sizeof 运算结
14、果(在 C 中)其他就跟程序写作关系不大了.发信人:griefjane(grief),信区:C 标 题:夏尔笔试题发信站:饮水思源(2004 年 01 月 02 曰 18:31:53 星期五),站内信件实现任意长度的整数相加功能。估计有多种方法可以实现,讨论一下吧,希望最后得到简洁、优雅的一个版本。发信人:lippman(lippman),信区:C 标 题:10/28 曰微创笔试题目公布!没有答案(ZZ)发信站:饮水思源(2004 年 10 月 29 曰 15:29:23 星期五),站内信件下午 3 点左右接到一个电话,小姐称是微创软件公司,问我有没有空晚上6 点去他们公司笔试,应聘软件工程师
15、,我问了一下情况,就答应了,当作一次经历也不错的。于是乎,我骑着小电驴花了50 分钟找到了延安东路222 号外滩中心,大楼很PP,一幢非常高档的写字楼,进进出出都是白领,工作环境很不错,我看着自己穿的休闲服,还真不好意思进去,这楼还挺麻烦,要签名领牌子进去。终于上了21 楼,看到了公司的门面,很气派名师资料总结-精品资料欢迎下载-名师精心整理-第 6 页,共 27 页 -,我喜欢的黄色系装潢,舒服的。不过接待的不是公司员工,是两个身穿制服的保安,递给我一份考卷,将我领进一间会议室,对我说90 分钟后交卷。然后就走出去了。会议室里面有很多人,除了我和另外一个女生,其余都是男生,都在奋笔疾书!牛!
16、我看了题目只有发傻 根本不是和我的岗位。唯一做的事情就是把题目摘录下来作为经验!不过我还是作了一部分的。嘻嘻http:/下面把题目贴出来,没有答案,大家可以讨论:)Part A 1)实现 string toHex(int)把一个十进制转换成十六进制。(完全用算法实现)2)实现一个计算大位数(如100 位以上)相乘结果的函数string multiply(sting,string)。(请完全用算法实现)3)一个数据库中有两个表,一张表为Customer,含字段 ID,Name,一张表为Order,含字段 ID,CustomerID(连向 Customer 中 ID 的外键),Revenue;写出
17、求每个Customer 的 Revenu e 总和的 SQL 语句。4)一个学生成绩登记系统,其中学生和课程均是可添加的,请设计一个库表结构实现,尽量保证系统使用中库表结构不再改变。5)请简要描述出你最熟悉的技术架构,包括架构中的各种中间件。(建议用图的形式)Part B 1)请简述 Critical Section 和 Mutex 的不同点。2)请描述下面函数声明中各个const 的作用:const char*Test()const 3)举 3 个以上 ASP.Net 与 ASP 相比的进步。4)ASP.Net中 user control 和 custom control 的区别。5)用一个
18、 C 语言用来删除单链表的头元素的函数,请找出其中的问题并加以纠正。void RemoveHead(node*head)free(head)head=head-next 6)试编写函数判断计算机的字节存储顺序是开序(little endian)还是降序(bigendian)7)给定如下SQL 数据库:Test(num INT(4)请用一条 SQL 语句返回 num 的最小值,但不许使用统计功能,如MIN,MAX 等。8)输出下面程序结果。#include using namespace std;class A public:virtual void print(void)coutA:print
19、()endl;名师资料总结-精品资料欢迎下载-名师精心整理-第 7 页,共 27 页 -;class B:public A public:virtual void print(void)coutB:print()endl;class C:public A public:void print(void)coutC:print()print();pb-print();pc-print();print(a);print(b);print(c);1.以下三条输出语句分别输出什么?C 易 名师资料总结-精品资料欢迎下载-名师精心整理-第 8 页,共 27 页 -char str1=abc;char st
20、r2=abc;const char str3=abc;const char str4=abc;const char*str5=abc;const char*str6=abc;cout boolalpha (str1=str2)endl;/输出什么?cout boolalpha (str3=str4)endl;/输出什么?cout boolalpha (str5=str6)endl;/输出什么?13.非 C+内建型别A 和 B,在哪几种情况下B 能隐式转化为A?C+中等 答:a.class B:public A ,/B 公有继承自 A,可以是间接继承的b.class B operator A()
21、;/B实现了隐式转化为A 的转化c.class A A(const B&);/A实现了 non-explicit 的参数为 B(可以有其他带默认值的参数)构造函数d.A&operator=(const A&);/赋值操作,虽不是正宗的隐式类型转换,但也可以勉强算一个12.以下代码中的两个sizeof 用法有问题吗?C 易 void UpperCase(char str)/将 str 中的小写字母转换成大写字母 for(size_t i=0;isizeof(str)/sizeof(str0);+i)if(a=str&str=z)str-=(a-A);char str=aBcDe;cout str
22、 字符长度为:sizeof(str)/sizeof(str0)endl;UpperCase(str);cout str 9)ch+=(A-9-1);char cl=c%0 x10+0;if(cl 9)cl+=(A-9-1);cout ch cl ;char str=I love 中国;for(size_t i=0;istrlen(str);+i)char2Hex(str);cout endl;4.以下代码有什么问题?C+易 名师资料总结-精品资料欢迎下载-名师精心整理-第 9 页,共 27 页 -struct Test Test(int)Test()void fun();void main(v
23、oid)Test a(1);a.fun();Test b();b.fun();5.以下代码有什么问题?C+易 cout (true?1:1 temp;unsigned int const size2=temp;char str2 size2;9.以下代码中的输出语句输出0 吗,为什么?C+易 struct CLS int m_i;CLS(int i):m_i(i)CLS()CLS(0);CLS obj;cout obj.m_i endl;10.C+中的空类,默认产生哪些类成员函数?C+易 答:class Empty public:Empty();/缺省构造函数名师资料总结-精品资料欢迎下载-名
24、师精心整理-第 10 页,共 27 页 -Empty(const Empty&);/拷贝构造函数Empty();/析构函数Empty&operator=(const Empty&);/赋值运算符Empty*operator&();/取址运算符const Empty*operator&()const;/取址运算符const;3.以下两条输出语句分别输出什么?C+难 float a=1.0f;cout (int)a endl;cout (int&a endl;cout boolalpha (int)a=(int&a)endl;/输出什么?float b=0.0f;cout (int)b endl;
25、cout (int&b endl;cout boolalpha (int)b=(int&b)=0;-i)/反向遍历 array 数组 cout array endl;6.以下代码有什么问题?STL 易 typedef vector IntArray;IntArray array;array.push_back(1);array.push_back(2);array.push_back(2);array.push_back(3);/删除 array 数组中所有的2 for(IntArray:iterator itor=array.begin();itor!=array.end();+itor)i
26、f(2=*itor)array.erase(itor);11.写一个函数,完成内存之间的拷贝。考虑问题是否全面 答:void*mymemcpy(void*dest,const void*src,size_t count)名师资料总结-精品资料欢迎下载-名师精心整理-第 11 页,共 27 页 -char*pdest=static_cast(dest);const char*psrc=static_cast(src);if(pdestpsrc&pdestpsrc+cout)能考虑到这种情况就行了 for(size_t i=count-1;i!=-1;-i)pdest=psrc;else for(
27、size_t i=0;icount;+i)pdest=psrc;return dest;int main(void)char str=0123456789;mymemcpy(str+1,str+0,9);cout str 5)printf(“%dn”,m);Else printf(“%dn”,-m);2简述AND,XOR,OR的功能3calloc 和 malloc 的区别43x3 九点,四条连线51x1x1,2x2x2,3x3x3 的三个容器。每个容器只能灌一次,如何量出13ml 的水。6求 sizeof(p)char*p=”hello!”char p=”hello!”void*p=mallo
28、c(100)void Func(char p100)7一段很长的程序,要求写出程序的意图。基本上是把字节指针pData 指向的一块内存数据复制到双字指针pwdData 指向的内存区域。每次复制4 字节,不足处补零。8#define SQR(x)x*x int a=10;int k=2;int m=1;a/=SQR(k+m)/SQR(k+m);a=?9一段程序找效率不高的地方。也是复制内存区域。1010 个房间里放着随机数量的金币。每个房间只能进入一次,并只能在一个房间中拿金币。一个人采取如下策略:前四个房间只看不拿。随后的房间只要看到比前四个房间都多的金币数,就拿。否则就拿最后一个房间的金币。
29、a)编程计算这种策略拿到最多金币的概率。b)证明这是不是最优策略。补充一下全部的试题。1。看程序写运行结果m=5;If(m+5)printf(“%dn”,m);名师资料总结-精品资料欢迎下载-名师精心整理-第 13 页,共 27 页 -Else printf(“%dn”,-m);打印结果:5 程序会进入 else 所在的分支2简述AND,XOR,OR的功能跳过3calloc 和 malloc 的区别简单一点的说:1.参数不同,2.calloc 还会初始化分配到的内存43x3 九点,四条连线自己琢磨吧,有三条线都是从某一个角上的点开始的。51x1x1,2x2x2,3x3x3 的三个容器。每个容器
30、只能灌一次,如何量出13ml 的水。方法一:三个容器套在一起,容器口都朝上,底部靠在一起,慢慢倒水,先倒满大容器(9-4)*2;水漫过 2*2*2 容器,直到快与1*1*1 容器口齐 3*1,10+3;方法二:3*3*3 容器与 2*2*2 容器口朝上,口平齐,小容器在大容器内;往3*3*3 容器倒水,3*3*3-2*2*2=19;1*1*1容器与 2*2*2 容器口朝上,口平齐,小容器在大容器内;从3*3*3 容器往 2*2*2 倒水,3*3*3 容器剩 12(19-(2*2*2-1*1*1),最后 1*1*1 容器满,12+1=13;6求 sizeof(p)1.char*p=”hello!
31、”2.char p=”hello!”3.void*p=malloc(100);4.void Func(char p100)sizeof(p)?解答:1.sizeof(p)=4;怎么说也只是个指针而已2.sizeof(p)=7;最后要加一个 post.content 3.sizeof(p)=4;怎么说也只是个指针而已4.sizeof(p)=4;没有试过,感觉林锐的书上这样写的7一段很长的程序,要求写出程序的意图。基本上是把字节指针pData 指向的一块内存数据复制到双字指针pwdData 指向的内存区域。每次复制4 字节,不足处补零。8#define SQR(x)x*x int a=10;int
32、 k=2;int m=1;a/=SQR(k+m)/SQR(k+m);a=?名师资料总结-精品资料欢迎下载-名师精心整理-第 14 页,共 27 页 -结果 a=1;解开后a/=k+m*k+m/k+m*k+m a=10/(2+1*2+1/2+1*2+1)=10/7.5 整数取整,故a=1;9一段程序找效率不高的地方。也是复制内存区域。解答 L:1、计算首地址不必每次都用乘法来算,2、每行要复制的宽度是固定的,不必每个循环都算1、变乘为加,不必每次都计算的,只计算一次就可以了。2、特殊的图形内存块,如位图,可以考虑整块拷贝,不必分行拷贝。1010 个房间里放着随机数量的金币。每个房间只能进入一次,
33、并只能在一个房间中拿金币。一个人采取如下策略:前四个房间只看不拿。随后的房间只要看到比前四个房间都多的金币数,就拿。否则就拿最后一个房间的金币。a)编程计算这种策略拿到最多金币的概率。b)证明这是不是最优策略。考官提示说不要用概率论的方法,我想无非是设一个长度为10 的数组,编号1 至 10 的数字放入其中,考虑10 的位置。其他的自己考虑吧。发信人:realchichi(人淡如菊相交如水晶晶亮),信区:Job_IT 标 题:威盛的 Software test Engineer 笔试题(转载)发信站:武汉白云黄鹤站(2004 年 11月 18 曰 12:28:32 星期四),站内信件【以下文字
34、转载自Job 讨论区】【原文由jjli 所发表】1.What is OSI Model?Which layer is responsible for the information reliable delivery?2.List the differences of TCP and UDP 3.Please list the differences between convertional C language and object-oriented language(OOL),sau C+?4.Please list the three major features and meaning
35、s of C+5.Please list the program areas of the run time environment and give a brief explanation of the function of each area 名师资料总结-精品资料欢迎下载-名师精心整理-第 15 页,共 27 页 -6.Write a piece of code(or macro)to convert the decimal number to hex format 7.In a real time operating based embedded system,2 tasks wil
36、l access the RS-232C port.Design a mutual exclusive mechanism for tasks sending command(Pseudo code is okay)8.A multi-task application is running on top of a real-time operating system,how many possbile states can a task have?Please draw a state transition diagram to explain.How the tasks communicat
37、e to each?发信人:realchichi(人淡如菊相交如水晶晶亮),信区:Job_IT 标 题:威盛的 Software tools Engineer 笔试题(转载)发信站:武汉白云黄鹤站(2004 年 11月 18 曰 12:28:36 星期四),站内信件【以下文字转载自Job 讨论区】【原文由jjli 所发表】Software programming test on C+:1.How good do you see yours programming skills?Please circle your answers C:Fair/Good/Excellent C+:Fair/Go
38、od/Excellent 2.Please estimate your programming experince:How many lines of code are your biggest C Program ever written excluding the standard linked library?How many lines of code are your biggest C+program ever written excluding t he standard linked library?3.Please explain the following terms Da
39、ta Encapsulation Inheritance Polymorphism 4.What is a virtual base class?How do you declare such a class?How would you u se it in a design?5.What is a template or container class?How do you declare such a class?6.Which are the access control levels for C+language?7.What is RTTI?How do you achieve RT
40、TI in your design?8.What are the major differences between static and non-static member function s?9.How do you call a regular member function from a static member function?Please use psendo-code to provide your answer 10.How do you declare/define a type of pointer to a class member function?Please
41、use psendo-code to provide your answer 名师资料总结-精品资料欢迎下载-名师精心整理-第 16 页,共 27 页 -11.Please explain the following tyoes:Here is a short lise of combinations and their meanings:1.Reference-Can change the referenced object 2.Const-Reference 3.Const-Pointer-4.Pointer-Const-5.Const-Pointer-Const-CFoo Instanc
42、e CFoo&ReferenceToInstance=Instance;/1 const CFoo&ConstReferenceToInstance=Instance;/2 const CFoo*pConstPointer=&Instance;/3 CFoo*const pPointerConst=&Instance;/4 const CF00*const pPointerConst=&Instance;/5 12.What are top-down and bottom-up approach?How do you usually use them?13.Please use pseudo-
43、code to design a set of stack operations with template 14.Please use pseudo-code to design a set of double linked list operations wit h template Optional Questionsfor extra credits)15.Please write a unix makefile for Question13 16.Please explain these common sections:text,data,bss 发信人:guaibaogou(乖狗狗
44、),信区:job 标 题:微软笔试试题发信站:雁塔晨钟(Sat Oct 16 20:58:48 2004),本站()今天笔试过后,11 月还有一次笔试,那次的规模应该更大吧,星期五的微软报告说会有80%到 90%的人会给予面试机会。所以我想把这次的试题写出来,可能对大家有一点帮助吧,当然,我大部分不记得了,因此希望参加了的同学可以一起来写。Part I.选择题 70分钟)1.求函数返回值,输入x=9999;int func(x)int countx=0;while(x)countx+;x=x&(x-1);名师资料总结-精品资料欢迎下载-名师精心整理-第 17 页,共 27 页 -return
45、countx;2.为什么返回局部变量的引用不好?a,b,c,d 不记得了,大概和内存,返回值等等有关。3.Stack R,from the top to bottom:2,3,4,5,6,逐个取出放入Queue Q,再从 Q 中逐个取出放入 R 中,问现在从上到下 R 中元素的排列?4.在你自己定义的类中有什么是CLASSVIEW 不会为你做的:(a)析构器。(b)拷贝构造函数(c)构造函数(不记得有没有这一项了)(d)(不记得了)5.写出程序的结果:_ _ int funa(int*a)a0+;int funb(int b)b1+=5;main()int a5=2,3,4,5,6;int b
46、5=2,3,4,5,6;int*p;p=&a0;(*p)+;funb(p);for(int i=0;i 5;i+)printf(%d,a);p=&b1;funa(p);/(啊,现在写的时候才发现做错了,传的是b1 的地址;只记得传地址给/指针了,考的时候以为/传的是 b.主要是被第一次调用funb 弄晕了呵呵)funb(p);for(i=0;i 0,=0,=b)return(a=b)?a:b;else return a+b+calc(+a,-b);问 calc(1,5)等于?还有那个 IQ 题:三个盒子有一个有宝石,先选一个,主持人打开一个问改不改的。常上iqdoor 版肯定不会有问题还有一个
47、abcdef*2=cdefab cdefab*2=efabcd 每个字母代表一个数字abcdef?2 编程题2。1 写一个 CircularQueue()2。2 写一个 Merge 函数。把两个排序的链表合并。难点是两个链表一个从小到大排,另一个反向。我是先把反向的转过来再合并的。名师资料总结-精品资料欢迎下载-名师精心整理-第 24 页,共 27 页 -3 设计(可用中文)1 设计一个密码对话框。问如何设计,有什么规范,如何测试等2 Web搜索引擎测试。4 忘了,可用中文5 要用英文做答5。1 你有什么新奇的想法,最好是软件方面5。2 让一个员工开发一个功能,但是他不重视。如何搞定。英语是:
48、我猜是这个意思吧。How would you convince a developer to add a feature that the developer does not view as importart?记性好差发信人:rebirth(肥得像猪一样的猫),信区:C 标 题:微软笔试题目(ZZ)发信站:饮水思源(2004 年 01 月 01 曰 13:49:05 星期四),站内信件MSRA Interview Written Exam(December 2003,Time:2.5 Hours)1 写出下列算法的时间复杂度。(1)冒泡排序;(2)选择排序;(3)插入排序;(4)快速排序;
49、(5)堆排序;(6)归并排序;2 写出下列程序在X86 上的运行结果。struct mybitfields unsigned short a:4;unsigned short b:5;unsigned short c:7;test void main(void)int i;test.a=2;名师资料总结-精品资料欢迎下载-名师精心整理-第 25 页,共 27 页 -test.b=3;test.c=0;i=*(short*)&test);printf(%dn,i);3 写出下列程序的运行结果。unsigned int i=3;couti*-1;4 写出下列程序所有可能的运行结果。int a;in
50、t b;int c;void F1()b=a*2;a=b;void F2()c=a+1;a=c;main()a=5;/Start F1,F2 in parallel F1();F2();printf(a=%dn,a);5 考察了一个CharPrev()函数的作用。6 对 16 Bits colors 的处理,要求:(1)Byte 转换为 RGB 时,保留高5、6bits;(2)RGB 转换为 Byte 时,第 2、3 位置零。名师资料总结-精品资料欢迎下载-名师精心整理-第 26 页,共 27 页 -7 一个链表的操作,注意代码的健壮和安全性。要求:(1)增加一个元素;(2)获得头元素;(3)