- 博客(45)
- 资源 (32)
- 收藏
- 关注
原创 常见C语言面试题之十一:约瑟夫环
#include "stdafx.h"#include #include typedef struct node{ int data; struct node* next;}LNode;LNode* Create(int n, int k) //创建循环链表{ int start=k-1; if(start==0) start = n; LNode *s, *p, *L=NULL, *
2008-08-27 16:02:00
1076
原创 常见C语言面试题之十:有序表合并
#include "stdafx.h"#include "stdio.h"#include "stdlib.h"#include "malloc.h"typedef struct LNode{ int data; LNode* next;}LNode, *LinkList;LinkList La, Lb, Lc;LNode* Create(){ LinkList l, p, q; int
2008-08-27 16:01:00
934
原创 常见C语言面试题之九:链表逆序
#include "stdafx.h"#include "stdio.h"#include "stdlib.h"typedef struct List{ int data; struct List *next;}List;List* list_Create(void){ List *head, *tail, *p; int e; head = (List*)malloc(sizeof(
2008-08-27 16:00:00
1397
原创 常见C语言面试题之八:数组实现大数阶乘
#include "stdafx.h"#include using std::cout;using std::cin;using std::endl;void factorial(int x){ int re[1000],len=1,i,carry; re[0]=1; //初始re[0]赋值1 for(int mul=2;mul//阶乘从2开始循环 for(i
2008-08-27 15:59:00
1269
原创 常见C语言面试题之七:杨辉三角
int _tmain(int argc, _TCHAR* argv[]){ int i,j,a[10][10]; //i表示行,j表示列 for(i=0;i//首先将行列都赋值为0 for(j=0;j a[i][j]=0; for(i=0;i//将没一行的头尾赋值为1 { a[i][0]=1; a[i][i]=1
2008-08-27 15:58:00
1099
原创 常见C语言面试题之六:数组逆序
#include "stdafx.h"#include "stdio.h"#include "stdlib.h"#include "string.h"void foo1(char* a){ int len = strlen(a); for(int i=0;i { a[len] = a[i]; a[i] = a[len-i-1]; a[len-i-1] = a[len];
2008-08-27 15:57:00
1080
原创 常见C语言面试题之五:两个字符串的最大公共子字符串
#include "stdafx.h"#include "stdio.h"#include "malloc.h"#include "string.h"char *maxsubstr(char *str1, char *str2){ char *p1, *p2, *q1, *q2, *destp; char *substr; int max=0, len; p1 = str1; while
2008-08-27 15:56:00
2061
原创 常见C语言面试题之四:删除字符串头尾空格,字符串右对齐
#include "stdafx.h"#include #include #include struct st { int id; char ch; char name[10]; double db;};char *rtrim(char *);char *ltrim(char *);char *rjust(char *);int _tmain(int argc, _TCHAR* argv[
2008-08-27 15:55:00
3344
原创 常见C语言面试题之三:字符串替代
#include "stdafx.h"#include "string.h"#include "malloc.h"char *replace(char *source, char *sub, char *rep){ char *result; //*pc1是复制到结果result的扫描指针 //*pc2是扫描source 的辅助指针 //*pc3寻找子串时,为检查变化中的source是否与
2008-08-27 15:54:00
991
原创 常见C语言面试题之二:浮点数转换为字符串
#include "stdafx.h"#include "stdlib.h"char *F2S(double d, char* str){ char str1[40]; int j=0,k,i; i = (int)d; //浮点数的整数部分 //d = d-(int)d; while(i>0) { str1[j++] = i%10+0; i /= 10; } fo
2008-08-27 15:53:00
1315
原创 常见C语言面试题之一:字符串代替、字符串转换整数
#include "stdafx.h"using namespace std;//--------字符替代问题char* Translate(char* pSrc, const char cFindChar, const char* pReplaceStr, char* pTag) { char* p = NULL ; int lLen = (in
2008-08-27 15:45:00
1122
原创 泛型委托
#region Using directivesusing System;using System.Collections;using System.Collections.Generic;using System.Text;#endregionnamespace GenericMethodDemo{ public static class Algorithm { //1.no oper
2008-08-01 15:25:00
943
原创 泛型方法
using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace Generic_Method{ /* //-------第一种方案--普通方法--------- public class Account { private string name;
2008-08-01 15:06:00
470
原创 创建定制的泛型类--泛型Queue多线程读写文档--的泛型方法
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace Generic_T_Manager{ public interface IDocument { string Title { get;} string Content { get
2008-08-01 10:53:00
780
原创 泛型LinkedList
using System;using System.Collections.Generic;using System.Text;namespace LinkedList_T_Sample{ public class Document { private string title; public string Title {
2008-07-31 16:39:00
750
原创 泛型Queue多线程读写文档
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace Queue_T_Sample{ public class Document { private string title; public strin
2008-07-31 10:34:00
845
原创 泛型List
using System;using System.Collections.Generic;using System.Text;namespace List_T_Sample{ public class Racer { private string name; public string Name { get{retur
2008-07-30 18:05:00
555
转载 利用索引提高SQL Server数据处理效率
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<objectclassid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui>
2008-07-07 16:58:00
1108
2
原创 设计模式系列之四:装饰者模式(Decorator Pattern)
v/:* {behavior:url(#default#VML);}o/:* {behavior:url(#default#VML);}w/:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}Normal07.8 磅02false
2008-07-04 14:40:00
9708
原创 设计模式系列之三:观察者模式(Observer Pattern)
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:
2008-06-25 16:44:00
1845
原创 设计模式系列之二:策略模式(Strategy Pattern)
策略模式一、模拟鸭子游戏父类Duck,所有的鸭子都会呱呱叫(quack),游泳(swim),有父类负责处理;每种鸭子的外观不同,所以display()方法是抽象的。Class Duck {quack(){}swim(){}abstract display();}每个鸭子子类负责实现自己的外观;Class MallarDuck {display(){}}C
2008-06-18 12:18:00
967
原创 设计模式系列之一:写在系列前面
网上看到很多博客写了“设计模式”系列,很佩服别人把一本书看完,还做了那么详细的笔记!最近工作,忙于琐事,很久没有静下心来仔细系统的阅读一本书了,都是需要什么,就查阅相关资料。于是乎我也决定写一个系列,当作读书笔记,促进自己学习,希望能坚持下来!看看自己是不是老了,还有没有这个毅力?本系列以《Head First设计模式》为教材进行循序渐进的学习。其实前段时间已经浏览过一遍,只是不求甚解,现在竟
2008-06-18 11:24:00
828
原创 C#如何在DataGridView的RowHeader显示字符串和图标
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:
2008-06-04 10:56:00
9102
1
原创 SQL获取所有数据库名、表名、储存过程以及参数列表
[综合网络资料整理]Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋
2008-05-13 13:56:00
1161
原创 C#附加一个数据库到SQL服务器
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; p
2008-05-12 15:22:00
900
2
转载 C#遍历SQL服务器上的存储过程和表
Normal07.8 磅02falsefalsefalseMicrosoftInternetExplorer4<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:
2008-05-12 15:20:00
1567
转载 C# 制作向导
声明:本文根据网络资料,改编而成1.FormBase界面:有“帮助,上一步,下一步,取消”按钮,这些按钮放置在一个Panel上。namespace DataBase{ public partial class FormBase : Form { public FormBase() { Initialize
2008-04-24 10:25:00
4807
1
原创 C#与SQL Server存储过程之二(调用):使用C#调用SQL Server的存储过程
Form上有一个button按钮,name:buttonProcedureClient。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using Sy
2008-04-18 16:37:00
3056
转载 C#与SQL Server存储过程之一(创建):使用C#创建SQL Server的存储过程
通常,开发人员使用的是T-SQL来创建SQL Server的存储过程、函数和触发器。 而现在的SQL Server 2005已经完全支持.NET通用语言运行时(CLR)了。 这就意味着,你可以使用.NET的语言,如C#、VB.NET之类的来开发SQL Server的存储过程、函数和触发器。 SQL Server 和 CLR 的集成给我们带来了n多好处,如实时编译、类型安全、增强的安全性以及增
2008-04-18 16:29:00
10889
1
原创 C#存取SQL Server数据库之二:利用序列化进行类链表存取(ArrayList,varbinary)
创建项目1. 添加一个名为RWTest的表到 SQL Server MYTest 数据库。 表字段设置如下: a. 唯一标识字段名称为"ID",类型为Int。 b. 名称为"Description"的VarChar类型的字段,字段长度为50。 c. 名称为"Data" 的varbinary(Max) 类型的字段。 2.
2008-04-07 16:22:00
3692
2
原创 C#存取SQL Server数据库之一:二进制存取图片文件
创建项目1. 添加一个名为RWTest的表到 SQL Server MYTest 数据库。 表字段设置如下: a. 唯一标识字段名称为"ID",类型为Int。 b. 名称为"Description"的VarChar类型的字段,字段长度为50。 c. 名称为"ImgField" 的Image 类型的字段。 2. 启动 Vi
2008-04-07 15:26:00
2654
原创 C#多语言程序开发
C#多语言程序开发【部分资料源自网络】1,新建一个C#项目,在Form1上拖拉一个Button名为button12.将button1的Text属性设置为: "这是中文"3.在设计界面Form1的属性里找到Language,选择到英语4.将button1的Text属性设置为: "This is English"5.在主窗体定义一个静态变量:ZH 默认值为true;6
2008-04-03 17:41:00
6704
2
原创 C#读写INI文件
C#读写INI文件【文档介绍来源网络】INI文件就是扩展名为“ini”的文件。在Windows系统中,INI文件是很多,最重要的就是“System.ini”、“System32.ini”和“Win.ini”。该文件主要存放用户所做的选择以及系统的各种参数。用户可以通过修改INI文件,来改变应用程序和系统的很多配置。但自从Windows 95的退出,在Windows系统中引入了注册表的概念,
2008-04-02 18:05:00
1156
1
原创 《C#高级编程》第9章:集合,ArrayList,Stack,Queue,SortedList
ArrayListusing System;using System.Collections.Generic;using System.Text;using System.Collections;namespace MyArrayList{ class Program { static void Main(string[] args) {
2007-01-05 16:38:00
745
原创 《C#高级编程》第9章:集合,VectorAsCollection.cs
VectorAsCollection.csusing System;using System.Collections;using System.Text;using System.Collections.Generic;namespace Wrox.ProCSharp.VectorAsCollection{ #region MainEntryPoint class Main
2007-01-05 16:29:00
713
转载 转:35岁前成功的12条黄金法则
转自:http://www.javaresearch.org/article/60374.htm要离开程序了,心里面很多失落,未来的路到底怎么样. 贴一段激励自己, 也激励所有的IT人员吧!! 第一章:一个目标 一艘没有航行目标的船,任何方向的风都是逆风 1、你为什么是穷人,第一点就是你没有立下成为富人的目标 2、你的人生核心目标是什么? 杰出人士与平庸之辈的根本差别并不是天赋、
2007-01-05 09:18:00
565
转载 转:Visual C# 对话框全接触
VS.net bate 2出来也很久了,感觉还可以。早一阵子,朋友让我帮他写两个打印程序,当中用了不少的对话,在查资料的时候看到国外有一篇专门的文章介绍对话框的,就决定写这篇文章,让大家都有个好的起点。同时还着重介绍了打印那一部份,大家可以仔细研究一下,都说了很多了。现在我们开发吧! 对话框中我们常用了以下几种: 1、文件对话框(FileDialog) 它又常用到两个:
2006-12-13 15:57:00
888
转载 转:雅虎公司C#笔试题
Question 1. ( 单选 )在计算机网络中,表征数据传输可靠性的指标是1. 传输率2. 误码率3. 信息容量4. 频带利用率 Question 2. ( 单选 )以下关于链式存储结构的叙述中哪一条是不正确的?1. 结点除自身信息外还包括指针域,因此存储密度小于顺序存储结构2. 逻辑上相邻的结点物理上不必邻接3. 可以通过计算直接确定第i个结点的存储地址4. 插入、删除运算操作方便,不必移动
2006-12-06 15:16:00
801
原创 《C#高级编程》(第4版)6.3.2:事件和委托
《C#高级编程》(第4版)6.3.2:事件和委托Form1.cs在Form1上放置button1和label1控件using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using
2006-12-04 17:30:00
925
原创 《C#高级编程》第4版 Chapter6.2.3 多播委托
《C#高级编程》第4版 Chapter6.2.3 多播委托using System;namespace MulticastDelegate{ delegate void DoubleOp(double value); class MainEntryPoint { static void Main() { DoubleOp operations = new
2006-11-30 17:04:00
886
New_Head First设计模式(中文版)Part3(108-end).part12.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part11.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part10.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part09.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part08.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part07.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part06.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part05.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part04.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part03.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part02.rar
2008-07-14
New_Head First设计模式(中文版)Part3(108-end).part01.rar
2008-07-14
XMLSpy2008.part04.rar
2008-06-06
XMLSpy2008.part03.rar
2008-06-06
XMLSpy2008.part02.rar
2008-06-06
XMLSpy2008.part01.rar
2008-06-06
CLR.Via.Cs.part2.rar
2008-06-02
CLR.Via.Cs.part1.rar
2008-06-02
Head First设计模式(中文版)Part3(108-end).part13.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part12.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part11.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part10.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part09.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part08.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part07.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part06.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part05.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part04.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part03.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part02.rar
2008-05-15
Head First设计模式(中文版)Part3(108-end).part01.rar
2008-05-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人