越是看似简单、经常接触的。我们越是不知其所以然。这就是我写本文的原因。阻塞和非阻塞赋值一般使用在进程中,包括always和initial进程、assign赋值等操作中。阻塞赋值与非阻塞赋值always @(event-expression) begin ...... end同样可将采用非阻...
分类:
其他好文 时间:
2014-10-29 16:42:08
阅读次数:
263
RootViewController.m
#import "ModalViewController.h"
@interface RootViewController ()
@end
@implementation RootViewController {
ModalViewController *modalCtrl;
}
- (id)initWithNibName:(...
分类:
其他好文 时间:
2014-10-29 14:58:08
阅读次数:
169
RootViewController.h
#import "ModalViewController.h"
@interface RootViewController : UIViewController
RootViewController.m
@interface RootViewController ()
@end
@implementation RootViewContro...
分类:
其他好文 时间:
2014-10-29 14:57:57
阅读次数:
190
一、Python语句python语句大体上分为:顺序执行语句,条件执行语句,循环执行语句。语句逐个运行Python从头到尾执行文件中的嵌套块中的语句块和语句的边界自动检测Python没有或者\begin/end"等分割字符Python使用首行下的语句缩进把嵌套块内的语句组合起来,没有分号结束,一行的末..
分类:
编程语言 时间:
2014-10-29 02:06:30
阅读次数:
358
function quicksort(arr){ function q(start,end){ if(start>=end){return;} var pivot= start, temp = arr[pivot], i = start+1; for(;i=end){...
分类:
编程语言 时间:
2014-10-29 01:50:05
阅读次数:
172
协议类似于Java中的接口或者C++中的纯虚类,只有接口部分而没有实现部分只定义了方法的声明部分而没有实现部分。关键字为@protocol,协议可以继承别的协议,协议可以有多个用逗号分隔。协议中不能有成员变量。
@protocol MyProtocol
-(void) read;
-(void)write;
@end 定义一个MyProtocol协议继承自NSObject协议,...
分类:
其他好文 时间:
2014-10-28 17:55:16
阅读次数:
175
使用方式:导入MessageUI.framework框架:#import "ViewController.h" #import @interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { .....
分类:
其他好文 时间:
2014-10-28 17:46:28
阅读次数:
204
一、语法while [ condition ] # 当 condition 条件成立时,就进行循环,直到条件不成立停止do #执行内容done二、练习输入用户输入的参数,直到用户输入 "end" 结束循环whileread -p "Plz input a paramter": paramte...
分类:
系统相关 时间:
2014-10-28 17:31:49
阅读次数:
198
1 #include 2 using namespace std; 3 #include 4 5 #define LEN 12 6 7 int QuickSort(int *arr,int start,int end); 8 int Sort(int *arr,int start,int ...
分类:
编程语言 时间:
2014-10-28 17:00:32
阅读次数:
147
一、语法until [ condition ] # 和while相反,当 condition 条件成立时,就终止回圈, 否则就持续进行回圈的程序段do #执行内容done二、练习输入用户输入的参数,直到用户输入 "end" 结束循环untilread -p "Plz input a para...
分类:
系统相关 时间:
2014-10-28 16:58:05
阅读次数:
237