- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 在部署HEXO时出现ERROR Deployer not found : github的问题解决办法
最近无聊想自己搞个博客,于是就试了下HEXO,前面的没啥问题,按照网上的教程,前面加上sudo基本没啥问题 但是在部署的时候遇到 ERROR Deployer not found: github 的错误 经过调查后才知道HEXO更新到3.0之后,deploy的type 的github需要改成git 但是还是不行 出现了 ERROR Deployer not found: git 的错误
2016-01-01 19:53:01
7272
1
原创 UIView
frame 属性 决定了一个视图的大小和位置 frame是一个CGRect类型的结构体 可以用CGRectMake来构建 backgroundColor 背景颜色 通过UIColor设置 center属性 center是一个CGPoint类型的结构体 center于frame有着密切的关系 center.x = origin.x + size.width/2 cen
2015-09-09 08:57:00
337
原创 OC数组和字典嵌套练习:省市区
将文件中的省市区读出来并放在数组和字典嵌套的数据结构中 有注释的版本: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... //获取文本路径 NSString *path = @
2015-08-22 19:27:29
2777
原创 快速排序
快速排序是不稳定的。最理想情况算法时间复杂度O(nlog2n),最坏O(n ^2)。 #include void quick_sort(int *a,int len,int left,int right){ int i,j,temp,t; if(left>right) return ; i=left; j=right; temp
2015-06-03 15:32:30
371
原创 插入排序
插入排序 点上面的文字,有个视频,很好的解释了插入排序的原理 直接插入排序是稳定的。算法时间复杂度是O(n ^2) 。 #include void insert_sort(int * a,int len) { int i,j,temp; for(i=1;i<len;i++){ j=i-1; temp=a[i];
2015-06-01 19:33:00
368
原创 冒泡排序
这是一个稳定排序 #include void bubble_sort(int *array,int length){ int i,j,temp; for(i=0;i<length-1;i++){ for(j=0;j<length-i-1;j++){ if(*(array+j+1)<*(array+j)){
2015-06-01 11:09:44
333
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人