摘要: # OC delegate* 定义协议:创建一个属性和方法清单* 遵守协议:一个类实现某个协议中规定的方法* 一个类可以有其他很多属性或方法,可同时实现多个协议的属性和方法清单 委托类的头文件 委托者的头文件 委托者在.m文件中使用delegate 中的方法 被委托者实现delegate的方法 ma 阅读全文
posted @ 2016-11-15 13:48 ShellHan 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 克拉默法则 阅读全文
posted @ 2016-11-14 17:23 ShellHan 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: 打开eclipse.ini 加入 -vm /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home 当前java的安装路径 ⚠️ 不要加入后面的/bin/Java 亲试有效 :) 阅读全文
posted @ 2016-11-05 09:30 ShellHan 阅读(3857) 评论(0) 推荐(0) 编辑
摘要: // // main.cpp // BFS_cursive // // Created by 韩雪滢 on 10/23/16. // Copyright © 2016 韩雪滢. All rights reserved. // #include #include #define NUM_VERTEX 10 struct Vertex { char name; i... 阅读全文
posted @ 2016-10-23 19:58 ShellHan 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 我只是做了一点微小的工作,比如看了大神的代码然后加了注释,大神的原博客http://www.cnblogs.com/suncoolcat/p/3339508.html 阅读全文
posted @ 2016-10-23 16:20 ShellHan 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #include typedef struct node { struct node *next; int vertex; }node; node *G[20]; //heads of linked list int visited[20]; int n; void read_graph(); //create adjacency list void insert... 阅读全文
posted @ 2016-10-23 11:43 ShellHan 阅读(183) 评论(0) 推荐(0) 编辑
摘要: // // main.c // BFS // // Created by 韩雪滢 on 10/23/16. // Copyright © 2016 韩雪滢. All rights reserved. // #include #include #define MAX 100 #define initial 1 #define waiting 2 #define visited 3 ... 阅读全文
posted @ 2016-10-23 11:35 ShellHan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: // // main.cpp // 1083_simpleAnswer // // Created by 韩雪滢 on 10/19/16. // Copyright © 2016 韩雪滢. All rights reserved. // #include #include #include #include using namespace std; int n,a[405];... 阅读全文
posted @ 2016-10-19 21:45 ShellHan 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include typedef struct bucket_item s_bucket_item; struct bucket_item{ int value; s_bucket_item * next; }; typedef struct bucket s_bucket; struct bucket{ s_buc... 阅读全文
posted @ 2016-10-15 21:45 ShellHan 阅读(145) 评论(0) 推荐(0) 编辑
摘要: // // main.c // binarySort // // Created by 韩雪滢 on 10/15/16. // Copyright © 2016 韩雪滢. All rights reserved. // //复杂度O(nlogn) #include int a[10]={21,56,43,12,3,99,56,23,2,12}; int main() { int... 阅读全文
posted @ 2016-10-15 20:45 ShellHan 阅读(1062) 评论(0) 推荐(0) 编辑