I come, I see, I conquer

                    —Gaius Julius Caesar

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

09 2008 档案

摘要:1. 使用数组的好处 要计算某班的平均分数,假设该班只有10个学生。利用前面所学知识,可以有如下两种方法: 方法一:利用一个变量存储分数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include int main(void) { ... 阅读全文
posted @ 2008-09-27 11:57 jcsu 阅读(8892) 评论(0) 推荐(0) 编辑

摘要:C语言详解- 基本数据类型和标识符C语言详解- 枚举C语言详解- 输入输出C语言详解- 表达式和语句C语言详解- 控制语句C语言详解- 数组C语言详解- 指针与数组C语言详解- 结构体C语言详解- 文件C语言详解 - 综合编程(串频统计) 阅读全文
posted @ 2008-09-26 00:54 jcsu 阅读(1016) 评论(0) 推荐(0) 编辑

摘要:枚举类型的定义,变量声明,枚举的使用 阅读全文
posted @ 2008-09-25 20:14 jcsu 阅读(260218) 评论(23) 推荐(21) 编辑

摘要:串匹配的C语言实现 阅读全文
posted @ 2008-09-24 21:13 jcsu 阅读(864) 评论(0) 推荐(0) 编辑

摘要:链栈的C语言实现 阅读全文
posted @ 2008-09-24 21:02 jcsu 阅读(658) 评论(0) 推荐(0) 编辑

摘要:双链循环线性表的C语言实现 阅读全文
posted @ 2008-09-24 20:51 jcsu 阅读(1323) 评论(0) 推荐(0) 编辑

摘要:ORACLE数据库的体系结构和逻辑结构,批处理方式启动ORACLE服务,登录数据库,设置行宽,创建表空间和查看表空间和数据文件,如何给数据库分配更多的空间,对数据文件的操作 阅读全文
posted @ 2008-09-22 20:47 jcsu 阅读(665) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2008-09-22 18:28 jcsu 阅读(341) 评论(0) 推荐(0) 编辑

摘要:策略模式,命令模式 阅读全文
posted @ 2008-09-21 10:48 jcsu 阅读(568) 评论(0) 推荐(0) 编辑

摘要:代理模式,外观模式 阅读全文
posted @ 2008-09-20 16:41 jcsu 阅读(346) 评论(0) 推荐(0) 编辑

摘要:单例模式,观察者模式 阅读全文
posted @ 2008-09-20 11:15 jcsu 阅读(574) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include main() { /* 设置全0和全1 */ unsigned char zero = 0; unsigned char compzero = ~0; ... 阅读全文
posted @ 2008-09-19 22:10 jcsu 阅读(331) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include #include main() { char s[]="123456789"; char d[]="123"; strcpy(d, s); pr... 阅读全文
posted @ 2008-09-19 15:25 jcsu 阅读(2561) 评论(0) 推荐(0) 编辑

摘要:JAVA面试题全集 一、Java基础知识 1.Java有那些基本数据类型,String是不是基本数据类型,他们有何区别。 2.字符串的操作: 写一个方法,实现字符串的反转,如:输入abc,输出cba 写一个方法,实现字符串的替换,如:输入bbbwlirbbb,输出bbbhhtccc。 3.数据类型之间的转换 如何将数值型字符转换为数字(Integer,Double) 如何将数字转换为字符 如何取... 阅读全文
posted @ 2008-09-18 16:27 jcsu 阅读(3461) 评论(0) 推荐(0) 编辑

摘要:开篇:数组中可能会包含指针。 内容:指针数组。 演化:整数数组 --> 小数数组 --> 字符数组 --> 指针数组 int a[10]; --> float a[10]; --> char a[10]; --> char * a[10]; 功能:这种数据结构常用来构造字符串数组。 说明:... 阅读全文
posted @ 2008-09-17 20:56 jcsu 阅读(436) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/*用下标和指针操作数组*/ #include main() { int i, offset, b[] = {10, 20, 30, 40}; int *ptr = b; ... 阅读全文
posted @ 2008-09-17 20:44 jcsu 阅读(711) 评论(0) 推荐(0) 编辑

摘要:#include main() { int a[5] = {1,2,3,4,5}; int *ptr = (int*)(&a+1); int *p = a+1; printf("%d %d %d \n" , a, a+1, a+2); printf("%d %d %d \n" , *(a+1), *(ptr-1), *p); pr... 阅读全文
posted @ 2008-09-17 19:59 jcsu 阅读(748) 评论(0) 推荐(0) 编辑

摘要:编者按:非常基本的C语言问题, 一个信息类(计算机,资讯工程,电子工程, 通信工程)专业的本科毕业生应该达到的水平。题目不难,全部都能快速地答完, 当然也需要一定的知识储备。对于大多数人, 我们预期你可能答错 3) 4) 15)题, 所以答错3道以内的, 我们认为你很棒。答错5道题以内, 我们认为你还不错(你还可能答错第9题)。如果你有6道以上的题目不能答对,基本上我们都不好说什么了....约定:1) 下面的测试题中, 认为所有必须的头文件都已经正确的包含了2) 数据类型 char 一个字节 1 byte int 两个字节 2 byte (16位系统, 认为整型是2个字节) long int. 阅读全文
posted @ 2008-09-17 18:56 jcsu 阅读(2996) 评论(0) 推荐(0) 编辑

摘要:以下程序在VC环境下运行: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include typedef struct { int age; char * name; } Person; struct card { c... 阅读全文
posted @ 2008-09-17 11:34 jcsu 阅读(522) 评论(0) 推荐(0) 编辑

摘要:1. const限定符和指针 (1)const限定符通知编译器禁止修改某个特定的变量。 (2)用const作为函数参数有六种可能性,两种用于传值调用,四种用于传引用调用。并用最低访问权原则指导我们选择某种调用方式。 (3)如果传递给函数的值没有(或不应该)在函数体中被修改,应该用const声明该值以防被意外修改 (4)给函数传递的指针有如下四种情况,每种情况都有不同级别的访问权: 1)... 阅读全文
posted @ 2008-09-16 21:11 jcsu 阅读(456) 评论(0) 推荐(0) 编辑

摘要:以下代码在VC环境下运行: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include void square(int *); main(void) { int y=10; printf("The original valu... 阅读全文
posted @ 2008-09-16 20:34 jcsu 阅读(487) 评论(0) 推荐(0) 编辑

摘要:以下代码在VC环境下运行: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include main(void) { int x; int *p; x=10; p=&x; printf("The add... 阅读全文
posted @ 2008-09-16 19:39 jcsu 阅读(373) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include struct Node { int a; char b[10]; Node *next; }; main(void) { char *p=NUL... 阅读全文
posted @ 2008-09-16 11:48 jcsu 阅读(2277) 评论(0) 推荐(0) 编辑

摘要:目的:我们想了解变量声明时计算机究竟做了什么 以下是VC++编译环境下的C程序 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include struct Test { int x; int y; }; main() { ... 阅读全文
posted @ 2008-09-15 22:16 jcsu 阅读(605) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 变量作用域举例 */ #include void a (void); /* 函数原型 */ void b (void); /* 函数原型 */ void c (void); /* 函... 阅读全文
posted @ 2008-09-15 20:43 jcsu 阅读(280) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * 逗号运算符的作用是将若干表达式连接起来。 * 它的优先级别在所有运算符中是最低的, 结合方向是"自左至右"的。 * 其值是最后一个表达式的值, 其间所有的都要计算 */ #incl... 阅读全文
posted @ 2008-09-15 20:34 jcsu 阅读(297) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include main() { /*德.摩根律*/ int x=5, y=5; printf("x = %d, y = %d \n", x, y); printf... 阅读全文
posted @ 2008-09-15 19:44 jcsu 阅读(303) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include main() { /*%d所能输出的范围*/ printf("%d \n", 0xffffffff); //%d所能输出的32位整数, 最大负整数 print... 阅读全文
posted @ 2008-09-15 19:40 jcsu 阅读(371) 评论(0) 推荐(0) 编辑

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include main() { /*栈变量和堆变量*/ int x=5, y=5; printf("&x = %d, &y = %d \n", &x, &y); ... 阅读全文
posted @ 2008-09-15 19:38 jcsu 阅读(778) 评论(0) 推荐(0) 编辑

摘要:C# developer interview questions A representative of a high-tech company in United Kingdom sent this in today noting that the list was used for interviewing a C# .NET developer. Any corrections and s... 阅读全文
posted @ 2008-09-14 11:02 jcsu 阅读(1578) 评论(1) 推荐(0) 编辑

摘要:Question1. (单选) 在计算机网络中,表征数据传输可靠性的指标是 1. 传输率 2. 误码率 3. 信息容量 4. 频带利用率 Question 2. (单选) 以下关于链式存储结构的叙述中哪一条是不正确的? 1. 结点除自身信息外还包括指针域,因此存储密度小于顺序存储结构 2. 逻辑上相邻的结点物理上不必邻接 3. 可以通过计算直接确定第i个结点的存储地址 4. 插入、删除运算操作... 阅读全文
posted @ 2008-09-14 10:50 jcsu 阅读(878) 评论(0) 推荐(0) 编辑

摘要:汉王科技:http://www.hw99.com/ 高级研究人员(模式识别、图像处理类)招聘试题 说明: 可能您的专业并不完全符合本试题所涉及的领域。因此,并非所有的问题都需要回答,您可以只回答你所熟悉和能够回答的问题。允许参考任意的资料,但请独立完成此试题,我们更欣赏您独立的思考和创新的精神。本试题并非我们录用或者不录用您的惟一依据。应聘高级研究人员者请回答这部分问题。 1.人工智能与模... 阅读全文
posted @ 2008-09-14 10:19 jcsu 阅读(758) 评论(0) 推荐(0) 编辑

摘要:中兴通讯:http://www.zte.com.cn/ 中兴笔试题目 公共部分(50分) 1:作业调度程序从处于(B)状态的队列中选择适当的作业的作业投入运行。(3分) A 运行 B 提交 C 完成 D后备 2:SQL语言中,删除一个表的命令是(B) (3分) A CLEAR TABLE B DROP TABLE C DELETE TABLE D REMOVE T... 阅读全文
posted @ 2008-09-13 21:50 jcsu 阅读(6256) 评论(1) 推荐(1) 编辑

摘要:华为笔试网络题(1) 1.在OSI 7 层模型中,网络层的功能有( ) A.确保数据的传送正确无误 B.确定数据包如何转发与路由 C.在信道上传送比特流 D.纠错与流控 2.FDDI 使用的是___局域网技术。( ) A.以太网 B.快速以太网 C.令牌环 D.令牌总线 3.下面那种LAN 是应用CSMA/CD协议的 ( ) A.令牌环 B.FDDI C.E... 阅读全文
posted @ 2008-09-13 20:34 jcsu 阅读(3462) 评论(0) 推荐(1) 编辑

摘要:大唐电信:http://www.datang.com/ 考试时间一小时,第一部分是填空和选择: 1.数列6,10,18,32,“?”,问“?”是几? 2.某人出70买进一个x,80卖出,90买回,100卖出,这桩买卖怎么样? 3.月球绕地球一圈,至少要多少时间? 4.7个人用7小时挖了7米的沟,以同样的速度在50小时挖50米的沟要多少人? 5.鱼头长9,鱼尾等于鱼头加半个鱼身,鱼身等... 阅读全文
posted @ 2008-09-13 20:29 jcsu 阅读(1632) 评论(0) 推荐(0) 编辑

摘要:115 questions total, not for the weak. Covers everything from basics to JDBC connectivity, AWT and JSP. What is the difference between procedural and object-oriented programs?- a) In procedural p... 阅读全文
posted @ 2008-09-13 14:17 jcsu 阅读(1048) 评论(0) 推荐(0) 编辑

摘要:How could Java classes direct program messages to the system console, but error messages, say to a file? The class System has a variable out that represents the standard output, and... 阅读全文
posted @ 2008-09-13 14:15 jcsu 阅读(743) 评论(0) 推荐(0) 编辑

摘要:Java threads question set Do I need to use synchronized on setValue(int)? - It depends whether the method affects method local variables, class static or instance variables. If only method local va... 阅读全文
posted @ 2008-09-13 14:12 jcsu 阅读(530) 评论(0) 推荐(0) 编辑

摘要:Describe what happens when an object is created in Java? Several things happen in a particular order to ensure the object is constructed properly: 1. Memory is allocated from heap to hold all instanc... 阅读全文
posted @ 2008-09-13 13:58 jcsu 阅读(914) 评论(0) 推荐(0) 编辑

摘要:C Language Programmer Interview ● What does static variable mean? ● What is a pointer? ● What is a structure? ● What are the differences between structures and arrays? ● In header files whether ... 阅读全文
posted @ 2008-09-13 13:33 jcsu 阅读(1151) 评论(0) 推荐(0) 编辑

摘要:Embedded System Engineer Interview ● Can structures be passed to the functions by value? ● Why cannot arrays be passed by values to functions? ● Advantages and disadvantages of using macro and inlin... 阅读全文
posted @ 2008-09-13 13:27 jcsu 阅读(909) 评论(0) 推荐(0) 编辑

摘要:1. 1024!末尾有多少个0?2. 编程实现两个正整数的除法(不能用除法操作符)。3. 请定义一个宏,比较两个数a、b的大小,不能使用大于、小于、if语句。4. 两个数相乘,小数点后位数没有限制,请写一个高精度算法。5. 编程实现把十进制数(long型)分别以二进制和十六进制形式输出,不能使用pr... 阅读全文
posted @ 2008-09-13 13:20 jcsu 阅读(1364) 评论(0) 推荐(0) 编辑

摘要:1. 有一个整数数组,请求出两两之差绝对值最小的值。2. 一个整数数列,元素取值可能是1~N(N是一个较大的正整数)中的任意一个数,相同数值不会重复出现。设计一个算法,找出数列中符合条件的数对的个数,满足数对中两数的和等于N+1。复杂度不能为O(n2)。3. 给定一个集合A=[0, 1, 3, 8]... 阅读全文
posted @ 2008-09-13 12:07 jcsu 阅读(6610) 评论(0) 推荐(0) 编辑

摘要:1.完成下列程序 * *.*. *..*..*.. *...*...*...*... *....*....*....*....*.... *.....*.....*.....*.....*.....*..... *......*......*......*......*......*......*...... *.......*.......*.......*.......*...... 阅读全文
posted @ 2008-09-12 21:23 jcsu 阅读(1064) 评论(0) 推荐(0) 编辑

摘要:SECTION Ⅰ Instruction: You are not allowed to use any library or API calls. Your answer will be evaluated from the following aspects: correctness, algorithm efficiency, error handing. API interface, a... 阅读全文
posted @ 2008-09-12 20:50 jcsu 阅读(860) 评论(0) 推荐(0) 编辑

摘要:1.实现双向链表删除一个节点P,在节点P后插入一个节点,写出这两个函数。 编写了一个完整的可运行程序,其中del_node和insert两个函数分别为题目中要求的两个函数,其余部分是用来测试这两个函数的 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->... 阅读全文
posted @ 2008-09-12 20:43 jcsu 阅读(1047) 评论(0) 推荐(0) 编辑

摘要:1.设计函数 int atoi(char *s) Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->int atoi(char *s) { char sign; char sign_val = 1; int val = 0; ... 阅读全文
posted @ 2008-09-12 20:37 jcsu 阅读(1454) 评论(0) 推荐(0) 编辑

摘要:笔试题目 1.设计一个重采样系统,说明如何anti-alias 2.y1(n)=x(2n),y2(n)=x(n/2),问: 如果y1为周期函数,那么x是否为周期函数? 如果x为周期函数,那么y1是否为周期函数? 如果y2为周期函数,那么x是否为周期函数? 如果x为周期函数,那么y2是否为周期函数? 3.如果模拟信号的带宽为5kHz,要用8k的采样率,怎么办 4.某个程... 阅读全文
posted @ 2008-09-12 19:48 jcsu 阅读(3007) 评论(3) 推荐(0) 编辑

摘要:微软亚洲技术支持中心 1. 进程(Process)和线程(Thread)的差别 2. 堆(Heap)与栈(stack)的差别 3. Windows是如何管理内存的 4. 介绍.Net和.Net的安全性 5. 客户端如何访问.Net组件实现Web Service 6. C/C++编译器中虚表是如何完成的 7. 谈谈COM的线程模型, 然后讨论进程内/外组件的差别 8. 谈谈IA32下的分页机制 9.... 阅读全文
posted @ 2008-09-12 17:40 jcsu 阅读(6174) 评论(1) 推荐(1) 编辑

摘要:朗讯(青岛)笔试题,共7页,2小时 1.Quick caculation(10分) I. a 8月1日是星期三,问到9月的第一个星期六有多少天?(包括8月1日和那个星期六) b 一月有5个星期一5个星期二5个星期三,2月1日是星期几? II.6只猫6分钟捉6只老鼠,问10分钟抓10只老鼠需要几只猫? 2. Basic Algorithm(10) Given an arbitrary binary ... 阅读全文
posted @ 2008-09-12 16:54 jcsu 阅读(2050) 评论(0) 推荐(0) 编辑

摘要:以下题目请在一个小时内完成 1、完成字符串拷贝可以使用 sprintf、strcpy 及 memcpy 函数,请问这些函数有什么区别,你喜欢使用哪个,为什么? 2、变量的声明和定义有什么区别? 3、请写出下面代码在 32 位平台上的运行结果,并说明 sizeof 的性质: Code highlighting produced by Actipro CodeHighlighter (freeware... 阅读全文
posted @ 2008-09-12 16:30 jcsu 阅读(1933) 评论(1) 推荐(0) 编辑

摘要:1. M是一个Byte,请计算M中bit为1的个数 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include int main() { int i,count; char M=0x11; /*00010001b*/ p... 阅读全文
posted @ 2008-09-12 16:18 jcsu 阅读(899) 评论(0) 推荐(0) 编辑

摘要:选择题(每题5分,只有一个正确答案) 1.中国1号信令协议属于 的协议。 A. ccs B. cas C. ip D. atm 2.isdnpri协议全称是 A. 综合业务模拟网基速协议 B. 综合业务模拟网模拟协议 C. 综合业务数字网基率协议 D. 综合业务数字网基次协议 3.路由协议中, 协议是用距离作为向量的 A. osp... 阅读全文
posted @ 2008-09-12 15:55 jcsu 阅读(1255) 评论(0) 推荐(0) 编辑

摘要:1. 找错试题1:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Voidtest1(){charstring[10];char*str1="0123456789";strcpy(string,str1);}试题2:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-- 阅读全文
posted @ 2008-09-12 11:51 jcsu 阅读(5685) 评论(3) 推荐(1) 编辑

摘要:120. 请叙述属性与索引器的区别 属性: (1) 通过名称标识 (3) 通过简单名称或成员访问来访问 (3) 可以为静态成员或实例成员 (4) 属性的get访问器没有参数 (5) 属性的set访问器包含隐式value参数 索引器: (1) 通过签名标识 (2) 通过元素访问来访问 (3) 必须为实例成员 (4) 索引器的get访问器具有与索引器相同的形参表 (5) 除了value参数外,索引器... 阅读全文
posted @ 2008-09-12 11:13 jcsu 阅读(4363) 评论(2) 推荐(2) 编辑

摘要:注:试题来自互联网,答案仅供参考! 1. (1) 以下叙述正确的是:(BC) A. 接口中可以有虚方法 B. 一个类可以实现多个接口 C. 接口不能被实例化 D. 接口中可以包含已实现的方法 (2) 从数据库读取记录,你可能用到的方法有:(BCD) A. ExecuteNonQuery B. ExecuteScalar C. Fill D. ExecuteReader 2.对于一个实现了I... 阅读全文
posted @ 2008-09-11 22:45 jcsu 阅读(3284) 评论(3) 推荐(0) 编辑

摘要:61. 产生一个int数组,长度为100,并向其中随机插入1-100,并且不能重复 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->int[] intArr = new int[100]; ArrayList myList = new ArrayLis... 阅读全文
posted @ 2008-09-11 14:20 jcsu 阅读(3916) 评论(5) 推荐(0) 编辑

摘要:1. 简述 private、 protected、 public、 internal 修饰符的访问权限 答: private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 public : 公共成员,完全公开,没有访问限制。 internal: 在同一命名空间内可以访问。 2. 列举ASP.NET页面之间传递值的几种方式 答: (1... 阅读全文
posted @ 2008-09-11 13:50 jcsu 阅读(7386) 评论(5) 推荐(0) 编辑

摘要:C、C++语法题(1)C、C++语法题(2)C、C++语法题(3)算法题(1) - 字符串算法题(2) - 线性表、树、图算法题(3) - 数组、集合算法题(4) - 其他 阅读全文
posted @ 2008-09-10 19:03 jcsu 阅读(11347) 评论(4) 推荐(1) 编辑

摘要: 华为笔试题,网络试题 阅读全文
posted @ 2008-09-10 18:59 jcsu 阅读(4928) 评论(0) 推荐(0) 编辑

摘要:哈希表,Hashtable 阅读全文
posted @ 2008-09-02 10:06 jcsu 阅读(373) 评论(0) 推荐(0) 编辑