代码改变世界

阅读排行榜

两行代码,理解了一个小时! 两个数组记录邻接表! ( 刘汝佳白书)

2012-08-05 00:53 by java环境变量, 190 阅读, 收藏,
摘要: #include<iostream> #include<algorithm> #include<stdio.h> #include<stdlib.h> #include<string.h> #include<queue> #include<math.h> #include<set> #include<vector> #define MAXN 15 #define INF 1000 int main() { int i,j,n,m,t,c; int first[MAXN]; int u[M 阅读全文

触发器-2

2012-03-22 10:20 by java环境变量, 190 阅读, 收藏,
摘要: ---行触发器------------------------------------------------------第一部分:before触发器--------------------------------------------------------案例01:新建一个使用属性:new的insert触发器create or replace trigger tr01before insert on studentfor each row --必须是行级触发器begin dbms_output.put_line('这个是行前触发器!'); dbms_output.put_ 阅读全文

心情小记

2012-02-03 02:30 by java环境变量, 190 阅读, 收藏,
摘要: 寒假过了一半了。天天想着要发狠,ACM算法, c++, java 任务多得让我感觉没一点时间可以浪费。但回顾这半个寒假 , 总有点空虚的感觉。 算法, 自己都不知道多学了些什么。 java 就了解了一点点皮毛。 唉。时间啊时间,晚上搞到半夜。白天却浪费了很多的时间。寒假还有半个月。想要的城市就在眼前,梦想一点也不远。 累死了,先来一碗大觉 哈哈。 comeon!comeon!comeonbaby! best_Scar 阅读全文

iphone处理翻转 横屏代码

2012-02-22 11:47 by java环境变量, 189 阅读, 收藏,
摘要: 方案1.当没有UITabbar 时候 只需要重载两个方法即可,第一个方法是支持翻转,第二个方法调整根据不同的翻转模式,调整界面元素位置/或新做一个view视图,为横向时候把横向视图添加到当前视图里面,翻转到纵向模式时候,把视图从当前视图移出[removefromsuperview]-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ //return YES; return ((interfaceOrientation == UIInterfaceOrientati 阅读全文

iphone中使用NSoperation实现图片异步加载

2011-12-19 15:46 by java环境变量, 189 阅读, 收藏,
摘要: 采用UITableView显示从网络上下载的图片,因为网络图片下载比较耗费时间,一般采用边显示文字,内容,后台下载图片,下载完成后刷新TableViewCell ,本文将演示如何通过自定的UITableViewCell,显示图片。1。定义ImageTableViewCell123456789@interface ImageTableViewCell : UITableViewCell {UILabel *txtLabel;UIImageView *imageView;}@property(nonatomic, retain)IBOutlet UILabel *txtLabel;@propert 阅读全文
上一页 1 ··· 97 98 99 100 101 102 103 104 105 ··· 110 下一页