2012.7.15

来源:互联网 发布:墙漆颜色 知乎 编辑:程序博客网 时间:2024/05/21 09:29

程序员教程:网络基础知识(用时两个半小时,完成)

协议是计算机网络的核心,由语法、语义和时序三部分构成。
TCP/IP分层模型由4个层次构成,从高到低各层依次为:应用层、传输层、网际层和网络接口层。


2009上半年上午考试试题(用时一个半小时)

正确率42/75为56%,看来我以现在的水平去考,还差很多,05年考题与09年考题在某些考点和知识点上有所区别。
从题目上看来,需要补充的知识有:
计算机基础知识——校验码,机器数的运算。
操作系统——进程控制和调度,作业管理和调度。
数据库——数据模型,关系数据库与关系运算,关系数据库SQL。 
网络——防火墙。 
数据结构——树、串、图、查找和排序。 
软件工程——软件开发模型,流程图,软件测试与维护。
计算机英语。


C++函数(用时一个半小时)

两种无参函数的方法:
int main()
{
 saySomething();
 saySomething2();
 system("pause");
}

void saySomething()
{
 cout << "This is one of saySomething" << endl;
}

void saySomething2(void)
{
 cout << "This is two of saySomething" << endl;
}

默认实参:
int boxVolume(int length =1,int width = 1,int height = 1);

int main()
{
 cout << "The default box volume is:" << boxVolume();

 cout << "\nThe volume of a box with length 10,\n" << "width 1 and height

1 is:" << boxVolume(10);

 cout << "\nThe volume of a box with length 10,\n" << "width 5 and height

1 is:" << boxVolume(10,5);

 cout << "\nThe volume of a box with length 10,\n" << "width 5 and height

2 is:" << boxVolume(10,5,2);

 system("pause");

}

int boxVolume(int length,int width,int height)
{
 return length * width * height;
}

注:每个形参变量都需单独指定变量类型,不能使用类似于“int x,y”的方法为多个形参指定变量类型。   此例中,在函数原型中提供变量名是为了增加可读性,通常变量名在函数原型中并不需要。


iPhone开发练习(半个小时到1小时)

原创粉丝点击