自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(102)
  • 资源 (22)
  • 收藏
  • 关注

原创 ios 试图滚动的时候,顶部显示和隐藏动画效果

@interface HeadrView : UIView @property (nonatomic, strong) UIScrollView *scrollView; @end #import "HeadrView.h" #import "Masonry.h" @interface HeadrView ()UIScrollViewDelegate>

2017-11-14 14:44:11 1827

转载 二进制快速排序

算法C语言实现: #define bitsword 32 #define bitsbyte 8 #define bytesword 4 #define R (1 #define digit(A,B) ((A)>>(bitsword-((B)+1)*bitsbyte)&(R-1)) void SortB(int a[],int l,int r,int m)

2017-11-14 10:55:33 847

原创 iOS 从相册中导入二维码图片识别

使用的第三方库ZXingObjC(https://github.com/TheLevelUp/ZXingObjC)进行识别,主要代码如下: CGImageRef imageToDecode = image.CGImage;  // Given a CGImage in which we are looking for barcodes                  ZX

2015-11-25 10:20:44 3894

原创 仿新浪新闻留言界面

#define kTextLen 200 @interface xxxView()UITextViewDelegate> @property (nonatomic, strong) UIView *contentView; @property (nonatomic, strong) PlaceholderTextView *textView; @

2015-09-16 17:17:06 627

原创 iOS 打包工具生成

预备知识:要懂shell脚本和xcode命令行命令,libexec命令使用 1、首先根据序号选择对应的证书,这个要在自己的配置文件中写好 while read var do case "$var" in 1) selectIndex=$var echo "==is number==" break ;; *)echo "==is no number=

2015-09-16 17:08:27 675

原创 发表评论的界面代码

#import "ForumViewController.h" #import "FaceViewController.h" @interface ForumViewController ()UITextViewDelegate,FaceViewDelegate> @property(nonatomic,strong)UITextView* textView; @property(nona

2014-10-29 11:51:52 5539

原创 读写plist文件

1、创建路径 NSFileManager *fileManager = [NSFileManager defaultManager];     NSArray * paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);     NSString *documentDi

2014-10-20 16:32:17 497

原创 分裂bst 非递归实现

PBSTNode splayR(PBSTNode h,Item item) {     if (h == z)     {         return NEW(item, z, z, 1);     }     PBSTNode p = NULL;     int flag = 0;     Key v = key(item);     while (h !=

2014-07-07 16:58:32 647

原创 二进制加法实现

int const n = 5; void addBinary(int *a,int *b,int *s) {     int i = n-1;     int c = 0;     int d = 0;     for (;i >= 0;i -=1)     {         d = floor((*(a+i) + *(b+i) + c )/2);      

2014-07-03 14:18:28 3259

原创 BST删除重复键实现,非递归实现

PBSTNode deleteRRR(PBSTNode h,Key v) {//删除一个匹配的键值,如果有重复的键,将删除     if (h == z)     {         return h;     }          PBSTNode p = h;     PBSTNode parent = NULL;     while (p != z)

2014-06-12 16:29:38 703

原创 BST的删除的非递归实现

PBSTNode deleteRR(PBSTNode h,Key v) {     if (h == z)     {         return h;     }     Key t = key(h->data);     PBSTNode p = h;     PBSTNode parent = NULL;     while (p != z)     {

2014-06-11 17:40:08 701

原创 将bst树选择运算的非递归实现-获取第k个元素值

Item selectRR(PBSTNode link,int k) {     if (link == z)     {         return NULLitem;     }     PBSTNode p = link;     int t = 0;     while (p != z)     {         t = p->left->N;    

2014-06-11 16:58:04 575

原创 在mac上使用Tcpdump命令行抓包工具的安装

首先,先从http://www.tcpdump.org网上下载源代码,然后在进行安装,这个

2014-05-29 10:03:02 10513

原创 非递归实现的bst的根插入操作

/*非递归实现的bst的插入操作 使用栈实现,z */

2014-05-26 10:18:26 762

原创 mac 使用xcode5编译ffmpeg

1、要安装xcode命令行工具, 2、

2014-05-22 11:08:39 4645

原创 使用指针数组实现bst插入和查找操作

#include #include #include typedef struct node* PNode; #define key int #define Item int struct node {     int index;     Item data;     PNode left;     PNode right;

2014-05-21 15:00:45 628

原创 NSObject类中有两个方法: + (void)load; + (void)initialize;解释

NSObject类中有两个方法: + (void)load; + (void)initialize; 如果多个类继承NSObject类,那在所有的子类在程序启动的时候,都会调用load方法, 在调用load这个方法要分几种情况: 1、如果在load方法里面调用[self  class]时候,会调用initialize方法, 2、如果在load方法里面没有调用[self

2014-05-20 11:08:07 1218

原创 符号表的索引实现-使用3个数组实现

#include #include #include typedef char* itemType; typedef char* keyType; static int N; static int inc; static itemType a[100]; static int left[100];// static int right

2014-05-16 17:28:39 762

原创 使用重复键插入到bst树中

void BSTinsertR(Item item) {//重复的键的插入操作     if (header == NULL)     {         header = NEW(item,NULL, NULL, 1);         return;     }     if (header == z)     {         header = NEW

2014-05-12 17:03:38 734

原创 BST树的搜索和插入一并开始运行

//使用一个标 PBSTNode BSTsub(PBSTNode link,Item item,int *flag) {     if (!link)     {         return NEW(item, z, z, 1);     }     Key t = key(link->data);          if (t == key(item))

2014-05-12 09:00:35 597

原创 使用一个主表排序,副表记录当前访问的项移到副表的头-符号表

//在主表中插入新项,将在副表的表头插入,如果在主表

2014-04-30 16:18:06 648

原创 符号表的搜索,当一个槽中有数据时,使用下面的槽,以此类推

只是修改search的函数

2014-04-24 16:43:41 500

转载 键索数组引符号表

键索数组引符号表使用数组模拟符号表,s

2014-04-23 17:23:31 767

原创 字符串反转

void FirstReverse(char * str[]) {     int sumLen = (int)(sizeof(&str)/sizeof(str[0]));     int len = 0;     int i = 0,j = 0;     for (len = 0;len     {         int subLen = (int)strlen((

2014-04-23 09:44:25 676

原创 scheme写程序训练

;求三个值,两两之间的最大值 (define (max-function x y z)          (define max (if (> (+ x y) (+ x z))(+ x y) (+ x z)))          (define mid (if (> (+ x y) (+ y z))(+ x y) (+ y z)))          (define lst (if (

2014-04-21 17:17:36 586

原创 符号表支持优先队列的最大值和最小值删除

//支持优先队列的最大值和最小值删除,aType = 0是删除最小值 aType = 1是删除最大值 void STdeleteMinAndMax(int aType) {     STfilterData();     int ret = 0;     int i = 0;     int n = STcount();     int tempIndex = 0;

2014-04-17 11:14:05 1096

原创 使用队列模拟符号表

//这个接上一章的数据结构,只是修改部分函数

2014-04-16 16:21:42 688

原创 使用符号表模拟栈

符号表其实就是一个字典,使用两个数组实现,

2014-04-15 09:08:19 595

原创 使用数组模拟符号表的程序

#include #include #include //插入, typedef int Item; typedef int Key; static Item *g_cache; static Item *g_Item; static int M; static int indexX; void key(Item aItem,Ke

2014-04-08 16:56:31 616

原创 二项堆实现

#include #include #include #include #define N 10 typedef struct PNode {     int key;     int degree;     struct PNode *p,*child,*sibling; }*PLink; void BINOMIAL

2014-03-04 16:10:25 709

原创 锦标赛程序的优先队列的插入

Link insert(Link pq,Item aData) {     if (!pq)     {         return pq;     }     if (pq->l)     {         if (pq->data == pq->l ->data)         {             pq->flag = 1;            

2014-02-11 15:59:51 577

原创 锦标赛程序的优先队列的删除

//转载c算法,其中在数据结构中加一个标志位,是用于删除遍历后使用 struct node {     Item data;     Link l,r;     int flag; }; Link NEW(Item aData) {     Link x = malloc(sizeof(*x));     if (!x)     {         re

2014-02-11 09:44:10 613

原创 有序双向链表的合并,删除最大值和最小值

typedef int Item; typedef struct node {     Item data;     struct node *next,*prev; }*PQlink; typedef struct pq {     PQlink header,tail; }*PQ; PQ createLink() {     PQ pq =

2014-01-26 17:55:44 1166

原创 无序双向链表的优先队列

#include #include #include typedef int Item; typedef struct node {     Item data;     struct node *next,*prev; }*PQlink; typedef struct pq {     PQlink header,tail; }

2014-01-22 10:40:06 1029

转载 算法比较

http://www.importnew.com/8445.html

2014-01-09 17:14:34 560

转载 runtime地址

http://opensource.apple.com/tarballs/objc4/

2013-12-25 15:51:00 549

原创 ALAssetsLibrary读取相册里面的图片

self.m_library = [[ALAssetsLibrary alloc] init]; 然后设置  NSUInteger type = ALAssetsGroupLibrary | ALAssetsGroupAlbum | ALAssetsGroupEvent |     ALAssetsGroupFaces | ALAssetsGroupPhotoStream;  

2013-12-24 13:45:57 4261

原创 在storyboard中使用代码实现跳转

UIStoryboard *board = [UIStoryboard storyboardWithName:@"Main" bundle:nil];     Person****ViewController *next = [board instantiateViewControllerWithIdentifier:@"Person******ViewController"];    

2013-12-24 13:25:21 2107

原创 等比例缩放图片

+(UIImage *) getThumbnail:(UIImage *)image size:(CGSize)asize {     UIImage *newimage;          UIGraphicsBeginImageContext(asize);      image drawInRect:CGRectMake(0, 0, asize.width, asize.heig

2013-12-24 13:21:13 768

原创 UITabBarController的外观修改总结

要自定义UITabBarController UITabBarController *tabBarController = self;     UITabBar *tabBar = tabBarController.tabBar;     UITabBarItem *tabBarItem1 = [tabBar.items objectAtIndex:0];     UITabBarI

2013-12-24 13:19:11 5052 1

算法导论答案

算法导论答案,讲的还是不错的,希望多看看。

2012-11-20

ffmpeg文档

ffmpeg文档。请大家看看,还是不错的

2015-02-16

iOs 可以上下左右滑动界面的库

iOs 可以上下左右滑动界面的库,这个控件里面添加uitableview控件,可以支持左右的,在一个界面里面上下滑动

2013-03-28

数学分析基础

数学这本分析不错,值得学习和下载,可以去下载,数学讲的不错。

2018-12-10

ios的私有的api

ios的私有的api,希望大家多看看,ios的私有的api。

2013-02-17

开源的btree的源码

google开源的btree的源码,希望多看看这个源码。

2013-02-06

ucore的实验答案

ucore的实验答案,还是不错,值得一看。

2014-08-05

http+播放器

http+播放器,可以先下载mp3,然后在播放器中播放

2012-08-22

算法导论第三版

算法导论第三版,很不错的书籍,值得大家去学习和实战~~~~~

2014-06-04

OBJECTIVE-C编程之道 IOS设计模式解析源代码

OBJECTIVE-C编程之道 IOS设计模式解析源代码不错的,大家可以值得看看

2016-08-31

具体数学中文版

这本书还不错的,还是值得去学习的,打好计算机数学基础~~~~~

2014-06-04

程序员实用算法

程序员实用算法,是很实用,希望能帮助更多的人知道。

2012-11-16

c语言算法第一卷

c语言算法第一卷,很不错的书,希望大家好好看看。

2012-11-16

计算程序设计艺术01

计算程序设计艺术01,讲解不错的,在读这本书之前,最好看看数学方面的知识。

2012-11-16

c语言算法第二卷

c语言算法第二卷,很不错的书,希望大家好好看看。

2012-11-16

计算机程序设计艺术

计算程序设计艺术01,讲解不错的,希望给大家对算法有所提高,在读这本书之前,最好看看数学方面的知识。

2012-11-16

程序设计艺术

程序设计艺术,讲解不错的,希望给大家对算法有所提高,在读这本书之前,最好看看数学方面的知识。

2012-11-16

思维的乐趣matrix67数学笔记

思维的乐趣matrix67数学笔记,思维的乐趣matrix67数学笔记.

2013-01-31

自己动手写操作系统

自己动手写操作系统

2013-01-31

Head First 设计模式(中文版)

Head First 设计模式(中文版)是一本很不错的书,请大家仔细阅读。

2016-08-31

数据结构与算法分析

c语言描述的数据结构和算法,很不错的书,值得一看。

2012-11-16

空空如也

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

TA关注的人

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