自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (5)
  • 收藏
  • 关注

原创 用C写的 简单字符串加密和解密算法

DataStruct.h 文件内容#include #include #define MAP_LEN 17 #define MAX_STR 100 typedef struct SData{ char *data ; int length ;}Data , *PData;static char mappings [MAP_LEN][2] = {{'a','b'},

2012-05-31 12:27:32 2131

原创 死锁避免-银行家算法 模拟

#include "string.h"#include "iostream.h"#define M 5           //总进程数#define N 3           //总资源数#define FALSE 0#define TRUE 1//M个进程对N类资源最大资源

2011-07-13 09:24:20 906

原创 C程序测试计算机的存储模式

#include #include typedef union{ int idata ; char cdata; }Data ;int test(){ Data t_Data ; t_Data.idata = 1 ; return (t_Data.cdata == 1) ;}in

2011-07-09 08:56:44 402

原创 小型记事本(Java版)

import javax.swing.*;import javax.swing.border.*;import java.awt.event.*;import java.awt.*;import java.io.File;import java.io.File

2011-07-06 08:30:11 551

原创 Makefile文件四种形式

给hello . c 编制Makefile文件形式一:#hello makefile   #注释hello:hello.o    #hello的依赖关系       gcc -o hello hello.c  #hello  #编译命令行clean:   #

2011-07-06 08:21:00 768

原创 图的邻接表存储与深度优先遍历算法

<br /><br />#include <stdio.h><br />#include <stdlib.h><br />#define MAX 20 //最大顶点数<br /> <br />typedef struct node{<br />    int adjvex;<br />    struct node  *next;<br /> }ENode;/*表示邻接单链表结点的数据类型*/<br /> <br />typedef struct {<br />       int data;<br /> 

2010-12-05 11:57:00 2165

原创 哈夫曼树的构造算法,哈夫曼编码算法

<br /><br />#include<stdio.h><br />#define MAX 100<br />#define MAXVALUE 500<br />typedef  struct<br />{  <br />int weight;<br />   int parent,lchild,rchild;<br />}node; /*哈夫曼树结点类型*/<br /> <br />/*-----------------------------以下部分定义哈夫曼编码存储结构---------------

2010-11-27 10:02:00 7316 1

原创 二叉树遍历的递归与非递归算法

<br />#include<stdio.h><br />#include<stdlib.h><br />typedef char datatype ;<br /><br />typedef struct node<br />{<br />     datatype data;/*数据域*/<br />     struct node *lchild,*rchild; /*左、右孩子域*/<br />}BTNode;<br /><br />typedef struct sta

2010-11-19 11:24:00 464

原创 比较两个整数的大小,不能使用 &quot;if&quot;, &quot;?:&quot;, &quot;switch&quot; 等

#include #include #include int compare(int a , int b) ;int main(){ int a ; int b ; printf("请输入第一个整数:") ; scanf("%d" , &a) ; printf("请输入第二个整数:") ; scanf("%d" , &b) ;  printf("a

2010-10-01 19:49:00 1087

原创 判断一个数是否是素数的两种算法

<br />#include <stdio.h><br />#include <stdlib.h><br />#include <math.h><br />int isPrime_1 (int n);<br />int isPrime_2 (int n);<br />int main()<br />{<br />   int n ;<br />   printf("输入一个整数:") ;<br />   scanf("%d" , &n) ;<br />   printf("用方法一:/n%d是素数吗?%s/

2010-08-25 10:27:00 1429

原创 两种求两整数最大公约数的方法

<br />#include <stdio.h><br />#include <stdlib.h><br /> <br />int GCD_1 (int x , int y) ;<br />int GCD_2 (int x , int y) ;<br /> <br />int main()<br />{<br />    int x = 0 ;<br />    int y = 0 ;<br />    printf("请输入第一个整数:") ;<br />    scanf("%d" , &x) ;<br

2010-08-25 10:24:00 380

原创 C语言简单的多线程

<br /><br />程序功能,当从键盘<br />输入1时程序一直输出“Hello World !”<br /> 当输入0时 , 停止输出'Hello World !' <br />再次输入1时 ,又开始输出“Hello World !”<br />这样循环下去。。。。。<br />知道输入-1时 ,程序退出!<br /> <br /><br />///Thread.h文件<br /> <br /> <br />#include <Windows.h><br />#include <stdio.h><b

2010-08-13 22:28:00 737

原创 简单的ASCII码字符串加密

<br />#include <stdlib.h><br />#include <stdio.h><br />#include <string.h><br /> <br />#define MAX 128 <br /> <br />void encrypt(char *str , char *toStr) ;<br />void decrypt(char *str , char *toStr) ;<br /> <br />int main()<br />{<br /> char str[100] ;<br

2010-08-10 21:44:00 2052

原创 输入一个十进制整数,输出其二进制原码、反码及补码

<br />//Function.h<br /> <br />#include <stdio.h><br />#include <string.h><br />#include <stdlib.h><br /> <br />void compute (int n , char *str_y , char *str_f , char *str_b)<br />{<br />int i = 0 ;<br />int j = 0 ;<br />int temp = 0 ;<br />int len = 0 ;<b

2010-08-09 22:40:00 8069 1

原创 输入菱形边长,输出一个空心菱形(C 实现)!!

<br />#include <stdio.h><br />#include <stdlib.h><br />void output (int n)<br />{<br /> int x = 0 ;<br /> int y = 0 ;<br /> int allLine = 2*n - 1 ;<br /> for (y =  1 ; y <= allLine ; y ++)<br /> {<br />  if(y <= n)<br />  {<br />   for(x = 1 ; x <= allLine

2010-08-08 23:17:00 2064

AIRPLAY播放器

AirPlay(简称AP,中文名称:飞乐)是一款小巧的免费音频播放器,作者为天津人Eric Yao,有简体中文和繁体中文两个语言版本。

2012-03-10

aliedit淘宝密码保护控件

在windows系统中,有两种二进制可执行文件,一种后缀名为.COM,另一种即是现在所说的.EXE文件了。它是常见的文件扩展名,如果系统中的文件含有该后缀则表明它是一个可以在DOS、OpenVMS、微软Windows、Symbian和OS/ 2等操作系统系统中执行的文件。除了可执行程序,EXE文件包含许多其他组件,如位图(bitmap),图标(icon)等exe可执行程序可能会使用到的图形用户界面资源。

2012-03-10

360隐私保护器_1.1Beta

2010年9月,360推出个人隐私保护工具——360隐私保护器,专门曝光“窥私”软件。该软件为绿色软件,会默认安装在用户电脑桌面,如需卸载只要将文件夹删除即可。

2012-03-10

Notepad(Java版)

用Java写的小型记事本,内部有若干BUG,功能一般,还有些未实现!供大家参考参考,相互学习学习!用Java写着西东西真的很方便,只不过在效率上确实不如C来得痛快

2011-07-06

tomcat-6.0.20

omcat是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心项目,由Apache、Sun 和其他一些公司及个人共同开发而成。由于有了Sun 的参与和支持,最新的Servlet 和JSP 规范总是能在Tomcat 中得到体现,Tomcat 5 支持最新的Servlet 2.4 和JSP 2.0 规范。因为Tomcat 技术先进、性能稳定,而且免费,因而深受Java 爱好者的喜爱并得到了部分软件开发商的认可,成为目前比较流行的Web 应用服务器。

2010-08-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除