首页
我的空间
圈子
伙伴
消息
即时聊天
|
编辑我的资料 | 登录 注册 退出 |
|
Prerequisite Notice:
Answers are preferred in English; Test time is 60 minutes; Finish more than one question. 1.Give an example of implementing a Stack in the template way(only template class declaration without detail definition and realization) 2.What''s the difference between String and StringBuffer? 3.Which came the first,chicken or the egg? 4.In C++,there''re four types of Casting Operators,please enumerate and explain them especially the difference. 5.Let''s say we have a database with 1 one-column table.It contains same record s. Could you please give at least 1 solution to help us get records between line 5 and 7. No line number,row id or index etc. 6.What will be the output of the following codes? #include <iostream.h> #define DBL(x) x+x int main() { int a=3; int b=4; int c=DBL(a)*DBL(b); cout<<c<<endl; return 0; } 7.Please write a program to realize the model described in the figure.You should design your program as generic as possible so that we can enhance the m odel in the future easily without making too much change in your program. Process1:X=A+B; Process2:Y=C+D; Process3:if E>=0 Z=E; Process4:if E<0 Z=E/B; |
更多精品面经, 尽在
周三访谈录
:
|