摘要:
typedef void (^ simpleBlock) (void);typedef double (^multiplyTwoValues)(double, double);typedef void (^ simpleTestBlock) (int ,int);@implementati... 阅读全文
摘要:
NSString *lookup=@"Hearts"; typedef void (^CaseBlock)(); NSDictionary *diction=@{@"Diamonds": ^(){ NSLog(@"Rich... 阅读全文
摘要:
#import int main(int argc, const char * argv[]){ @autoreleasepool { //block的规则 //返回值类型(^block名称)(形参参数列表)一般形参变量名不用写= ^返回值类型(实参数列表){block体}... 阅读全文
摘要:
#import NSInteger myCompare(id obj1,id obj2,void *context){ //不分大小写进行升序排序 //return [obj1 caseInsensitiveCompare:obj2]; return -[obj1 caseInsensitive... 阅读全文
摘要:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindowalloc] initWith... 阅读全文
摘要:
1 void copyFile() 2 { 3 NSString *home=NSHomeDirectory(); 4 NSString *path=[NSString stringWithFormat:@"%@/desktop/oc.mp4",home]; 5 NSStr... 阅读全文
摘要:
解决办法:以sys身份登录执行该语句:ALTER SYSTEM DISABLE RESTRICTED SESSION; 阅读全文
摘要:
PS:进入注册表--regedit--HKEY_LOCAL_MACHINE--SOFTWARE--ORACLE-KEY_OraDb11g_home1---NLS_LANG(双击此项设置的键值为AMERICAN_ AMERICA.ZHS16GBK) 阅读全文
摘要:
1:添加控制器类文件HomeController.cs其代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcTestData.Models;namespace MvcTestData.Controllers{ public class HomeController : Controller { // // GET: /Home/ public ActionResu... 阅读全文
摘要:
上行:SQL 操作语句下行:Mongo 操作语句CREATE TABLE USERS (a Number, b Number)db.createCollection("mycoll")INSERT INTO USERS VALUES(1,1)db.users.insert({a:1,b:1})SELECT a,b FROM usersdb.users.find({}, {a:1,b:1})SELECT * FROM usersdb.users.find()SELECT * FROM users WHERE age=33db.users.find({age:33})SELEC 阅读全文