自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (2)
  • 收藏
  • 关注

转载 函数参数

#define showAlert(format, ...) myShowAlert(__LINE__, (char *)__FUNCTION__, format, ##__VA_ARGS__)// Simple Alert Utilityvoid m

2011-09-27 09:50:47 475

转载 sql语句中left join、inner join中的on与where的区别

table a(id, type):id     type----------------------------------1      1        2      1         3      2         tab

2011-09-23 15:07:51 349

转载 判断设备是否插入耳机

//获取设备状态,是否插入耳机,如果插入耳机,则返回“YES" BY Leisure + (BOOL)isHeadphone{UInt32 propertySize = sizeof(CFStringRef);CFStringRef state = nil

2011-09-19 13:27:37 739

iphone 3d programming developing pdf&源代码

iphone 3d programming developing pdf&源代码

2015-01-12

数据结构—huffmancode

霍夫曼编码: #include "stdafx.h" #include<iostream> using namespace std; #include<stdio.h> #include"stdlib.h" #include"string.h" typedef struct { unsigned int weight; unsigned int parent,lchild,rchild; }HTNode,*HuffmanTree; typedef char * * HuffmanCode; void InitHuffmanTree(int a[],char b[],int &n,int &q) { int i; q=0; cout<<"请输入叶子结点的个数:"; cin>>n; cout<<"请按照字符 空格-.->A-...->Z的顺序输入"<<endl; cout<<"(以@表示空格字符,下同!)"<<endl; cout<<"请输入第一个叶子结点存储的数据:"; for(i=0;i<n;i++) { cin>>b[i]; if(i!=(n-1)) cout<<"请输入下一个叶子结点存储的数据:"; if(b[i]>='A'&&b[i]<='Z') q++; } cout<<"请输入第一个结点的权重:"; for(i=0;i<n;i++) { cin>>a[i]; if(i!=(n-1)) cout<<"请输入下一个结点的权重:"; } } ............

2008-12-17

空空如也

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

TA关注的人

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