notice

如果本博转载内容侵犯了您(原创人)的权益,请您告知,将在一第一时间删除!

日 历

2008 8.28 Thu
      1
2345678
9101112131415
16171819202122
23242526272829
3031     
«» 2007 - 12 «»

个人统计

用户名: xinsuiliangke
等级: 初来乍到
威望: 205
积分: 495
在线时间: 26 小时
日志总数: 33
评论数量: 32
访问次数: 117125
建立时间: 2007-10-02
RSS订阅       手机访问

文章搜索

文章列表

最新评论

最近访问的人:

自由的天空
2008-05-21 13:36:03
2008-04-25 11:40:41
blueliuv
2008-04-08 10:23:16
网络安全
2008-04-08 10:01:24
抽壹支煙
2008-04-04 15:23:43
电子商务研究(B2C)
2008-03-16 11:02:40
黄金书屋
2008-03-02 22:22:39
风淋室,层流罩,传..
2008-01-26 12:37:59
aa
2008-01-23 23:08:03
成长 历练
2008-01-22 11:22:40

日志文章列表

2007年12月23日 19:09:55

VC文件扩展名详解

.APS:存放二进制资源的中间文件,VC把当前资源文件转换成二进制格式,并存放在APS文件中,以加快资源装载速度。资源辅助文件。
.BMP:位图资源文件。
.BSC:浏览信息文件,由浏览信息维护工具(BSCMAKE)从原始浏览信息文件(.SBR)中生成,BSC文件可以用来在源代码编辑窗口中进行快速定位。用于浏览项目信息的,如果用source brower的话就必须有这个文件。可以在project options里去掉Generate Browse Info File,这样可以加快编译进度。
.C:用C语言编写的源代码文件。
.CLW:ClassWizard生成的用来存放类信息的文件。classwizard信息..

阅读全文>>

Tags: VC文件扩展名  

类别: c/c++ |  评论(3) |  浏览(3414) |  收藏
2007年12月12日 14:39:46

无向图邻接表的建立

#define maxnode 40
#define null 0
#include<stdio.h>
typedef struct st_arc
{int adjvex;
int weight;
struct st_arc *nextarc;
}arcnode;
typedef struct
{int vertex;
struct st_arc *firstarc;
}vernode;
typedef vernode adjlist[maxnode];
void print(vernode g[],int n)
{
arcnode *q;
int i;
printf("adjacency list of the graph:\n");
for(i=0;i<n;i++)
  {printf("\t%d\t",i);
  printf("%d\t",g.vertex);
  q=g.firstarc;
  while(q!=..

阅读全文>>

Tags: 无向图邻接表  

类别: 数据库 |  评论(0) |  浏览(2362) |  收藏
2007年12月12日 13:57:43

堆排序

#include<stdio.h>
#define max 40
typedef struct
{int key;
char name;
}datatype;
datatype x[max];

void creatheap(datatype x[],int l,int n)
{
int i,j,flag;
datatype swap;
i=l;
j=2*i+1;
swap=x;
flag=0;
while(j<=n-1&&flag!=1)
{if(j<n-1&&x[j].key>x[j+1].key)
j++;
if(swap.key<x[j].key)
flag=1;
else
{x=x[j];
i=j;
j=2*i+1;
x=swap;
}
}
}


void getsort(datatype x[],int n)
{
int i;
printf("recorder:");
for(i=0;i<n;i++)
scanf("%d"..

阅读全文>>

Tags: 堆排序  

类别: 数据库 |  评论(0) |  浏览(1086) |  收藏
2007年12月11日 22:26:40

冒泡排序

#include<stdio.h>
#define max 40
typedef struct
{int key;
char name;
}datatype;
datatype x[max];
void getsort(datatype x[],int n)
{int i;
printf("recorder;");
for(i=0;i<n;i++)
scanf("%d",&x.key);
}
void hubblesort(datatype x[],int n)
{int i,j,k,flag;
datatype swap;
flag=1;
for(i=1;i<n&&flag==1;i++)
{flag=0;
for(j=0;j<n-i;j++)
  if(x[j].key>x[j+1].key)
  {flag=1;
  swap=x[j];
  x[j]=x[j+1];
  x[j+1]=swap;
&n..

阅读全文>>

Tags: 冒泡排序  

类别: 数据结构 |  评论(6) |  浏览(1847) |  收藏
2007年12月11日 14:41:26

折半查找

#include<stdio.h>
#define max 20
int binary(int x,int list[],int n)
{int low,high,mid;
low=0;
high=n-1;
while(low<=high)
{mid=(low+high)/2;
if(x<list[mid])
  high=mid-1;
else
  if(x>list[mid])
  low=mid=1;
  else
  return(mid);
}
return(-1);
}
int getdata(int list[])
{int num,i;
printf("total=");
scanf("%d",&num);
for(i=0;i<num;i++)
  {printf("data[%d];",i);
  scanf("%d",&li..

阅读全文>>

Tags: 折半查找  

类别: 数据结构 |  评论(2) |  浏览(1619) |  收藏