孤独的猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页

2011年5月3日

摘要: #include #include 阅读全文
posted @ 2011-05-03 12:51 孤独的猫 阅读(289) 评论(0) 推荐(0) 编辑

摘要: 栈是限定仅在表尾进行插入或删除操作的线性表。 栈的表尾称为栈顶,表头称为栈底,不含元素的空表称为空栈。 阅读全文
posted @ 2011-05-03 12:50 孤独的猫 阅读(188) 评论(0) 推荐(0) 编辑

摘要: 栈是限定仅在表尾进行插入或删除操作的线性表。 栈的表尾称为栈顶,表头称为栈底,不含元素的空表称为空栈。 阅读全文
posted @ 2011-05-03 12:50 孤独的猫 阅读(183) 评论(0) 推荐(0) 编辑

摘要: #include #include 阅读全文
posted @ 2011-05-03 12:50 孤独的猫 阅读(187) 评论(0) 推荐(0) 编辑

摘要: #include #include 阅读全文
posted @ 2011-05-03 12:48 孤独的猫 阅读(206) 评论(0) 推荐(0) 编辑

摘要: #include #include #include 阅读全文
posted @ 2011-05-03 12:48 孤独的猫 阅读(239) 评论(0) 推荐(0) 编辑

摘要: 几乎所有的程序设计语言都把数组类型设定为固有类型。 以抽象数据类型的形式讨论数组的定义和实现,可以让我们加深对数组类型的理解。 阅读全文
posted @ 2011-05-03 12:47 孤独的猫 阅读(247) 评论(0) 推荐(0) 编辑

摘要: 串(或字符串),是由零个或多个字符组成的有限序列。一般记为: s='a1a2...an'(n>=0) 其中s是串的名,用单引号括起来的字符序列是串的值;串中字符的数目n称为串的长度。零个字符的串称为空串,它的长度为零。 阅读全文
posted @ 2011-05-03 12:47 孤独的猫 阅读(323) 评论(0) 推荐(0) 编辑

摘要: #include #include #define smax 45 typedef int datatype; 阅读全文
posted @ 2011-05-03 12:46 孤独的猫 阅读(269) 评论(0) 推荐(0) 编辑

摘要: 队列是一种先进先出的线性表。它只允许在表的一端进行插入,而在另一端删除元素。象日常生活中的排队,最早入队的最早离开。 在队列中,允许插入的的一端叫队尾,允许删除的一端则称为队头。 阅读全文
posted @ 2011-05-03 12:46 孤独的猫 阅读(198) 评论(0) 推荐(0) 编辑

摘要: 为了节省存储单元,可只存储非零元素。由于非零元素的分布一般是没有规律的,因此在存储非零元素的同时,还必须存储非零元素所在的行号、列号,才能迅速确定一个非零元素是矩阵中的哪一个元素。稀疏矩阵的压缩存储会失去随机存取功能。 阅读全文
posted @ 2011-05-03 12:46 孤独的猫 阅读(1043) 评论(0) 推荐(0) 编辑

摘要: 当用二叉链表作为二叉树的存储结构时,因为每个结点中只有指向其左、右儿子结点的指针,所以从任一结点出发只能直接找到该结点的左、右儿子。在一般情况下靠它无法直接找到该结点在某种遍历序下的前驱和后继结点。如果在每个结点中增加指向其前驱和后继结点的指针,将降低存储空间的效率。 阅读全文
posted @ 2011-05-03 12:45 孤独的猫 阅读(289) 评论(0) 推荐(0) 编辑

摘要: #include "stdio.h" typedef char ElemType; typedef struct BiTNode{ ElemType data; struct BiTNode *lchild,*rchild; }BiTNode; 阅读全文
posted @ 2011-05-03 12:44 孤独的猫 阅读(127) 评论(0) 推荐(0) 编辑

摘要: 广义表,顾名思义,它也是线性表的一种推广。它被广泛的应用于人工智能等领域的表处理语言LISP语言中。在LISP语言中,广义表是一种最基本的数据结构,就连LISP 语言的程序也表示为一系列的广义表。 阅读全文
posted @ 2011-05-03 12:44 孤独的猫 阅读(422) 评论(0) 推荐(0) 编辑

摘要: 排序方法 平均时间 最坏时间 辅助存储 简单排序 O(n2) O(n2) O(1) 快速排序 O(nlogn) O(n2) O(logn) 堆排序 O(nlogn) O(nlogn) O(1) 归并排序 O(nlogn) O(nlogn) O(n) 基数排序 O(d(n+rd)) O(d(n+rd)) O(rd) 阅读全文
posted @ 2011-05-03 12:43 孤独的猫 阅读(147) 评论(0) 推荐(0) 编辑

摘要: 查找,也称为检索,是计算机操作中最普通最费时的操作之一。所谓查找,就是根据给定的值(target),在一个表中查找出等于target的数据元素,若表中有这样的元素,则称查找是成功的,并指出该元素在表中的位置;若表中不存在这样的元素,则称查找是不成功的,或称查找失败,并且给出相应的提示。 阅读全文
posted @ 2011-05-03 12:43 孤独的猫 阅读(318) 评论(0) 推荐(0) 编辑

摘要: 对于2009年上半年软件设计师下午试题的一个分析,对于第五个空很多网上给出的答案都是ptr->rchild,本人认为应为q->elem->rchild,因为此时ptr已为空,ptr->rchild会报错,以下为本人写的测试程序,在c++ builder中测试通过//---------------------------------------------------------------------------#pragma hdrstop//--------------------------------------------------------------- 阅读全文
posted @ 2011-05-03 12:42 孤独的猫 阅读(248) 评论(0) 推荐(0) 编辑

摘要: //有个例子,参考一下; #include #include #include #include 阅读全文
posted @ 2011-05-03 12:42 孤独的猫 阅读(243) 评论(0) 推荐(0) 编辑

摘要: /* * 文件名: 1_3.c(选做题) * 实验环境: Turbo C 2.0 * 完成时间: 2003年2月22日 *-------------------------------------------------------------------- * 改进说明: 可以实现多个多项式的加法、减法、乘法,并且比书中算法更加 * 合理. 例如: 连加a+b+c+d,连减a-b-c-d,连乘a*b*c*d. */ 阅读全文
posted @ 2011-05-03 12:41 孤独的猫 阅读(321) 评论(0) 推荐(0) 编辑

摘要: #include #include 阅读全文
posted @ 2011-05-03 12:40 孤独的猫 阅读(850) 评论(1) 推荐(1) 编辑

摘要: 八皇后问题递归算法如下,在win-tc和tc2.0下已调试通过: 阅读全文
posted @ 2011-05-03 12:39 孤独的猫 阅读(227) 评论(0) 推荐(0) 编辑

2011年5月2日

摘要: using System; public class Car 阅读全文
posted @ 2011-05-02 22:15 孤独的猫 阅读(221) 评论(0) 推荐(0) 编辑

摘要: find命令行选择 -name 按照文件名查找文件 -perm 按照文件权限查找文件 -prune 忽略目录 阅读全文
posted @ 2011-05-02 18:35 孤独的猫 阅读(3171) 评论(0) 推荐(0) 编辑

摘要: Great Perl Modules:http://www.perlfoundation.org/perl5/index.cgi?recommended_cpan_moduleshttp://perl.net.au/wiki/Recommended_Perl_Moduleshttp://wiki.perlchina.org/index.php/%E6%A8%A1%E5%9D%97%E6%8E%A8%E4%BB%8Bhttp://search.cpan.org/~perigrin/Task-Kensho-0.18/lib/Task/Kensho.pmhttps://github.com/CPAN-API/cpan-api/wiki/API-docshttp://search.metacpan.org 阅读全文
posted @ 2011-05-02 17:47 孤独的猫 阅读(1364) 评论(0) 推荐(0) 编辑

摘要: #!/usr/bin/perl require "ctime.pl"; require "pwd.pl"; &initpwd; 阅读全文
posted @ 2011-05-02 17:24 孤独的猫 阅读(287) 评论(0) 推荐(0) 编辑

摘要: perl -e 'print "@INC\n"' perl -V 阅读全文
posted @ 2011-05-02 17:14 孤独的猫 阅读(407) 评论(0) 推荐(0) 编辑

2011年4月29日

摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.Win32; 阅读全文
posted @ 2011-04-29 21:45 孤独的猫 阅读(316) 评论(0) 推荐(0) 编辑

摘要: C#注册表操作类 阅读全文
posted @ 2011-04-29 14:31 孤独的猫 阅读(340) 评论(0) 推荐(0) 编辑

摘要: 在VC#中提供了Registry类、RegistryKey类来实现对注册表的操作。 其中Registry类封装了注册表的七个基本主健:   Registry.ClassesRoot 对应于HKEY_CLASSES_ROOT主键   Registry.CurrentUser 对应于HKEY_CURRENT_USER主键   Registry.LocalMachine 对应于 HKEY_LOCAL_MACHINE主键   Registry.User 对应于 HKEY_USER主键   Registry.CurrentConfig 对应于HEKY_CURRENT_CONFIG主键   Registry.DynDa 对应于HKEY_DYN_DATA主键   Registry.PerformanceData 对应于HKEY_PERFORMANCE_DATA主键 阅读全文
posted @ 2011-04-29 14:30 孤独的猫 阅读(301) 评论(0) 推荐(0) 编辑

2011年4月28日

摘要: 在linux中运行命令行 perl -e 'print "Hello world\n"' MS-DOS中运行命令行 perl -e "print qq(Hello world\n)" 阅读全文
posted @ 2011-04-28 21:47 孤独的猫 阅读(232) 评论(0) 推荐(0) 编辑

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页