码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
objc_setAssociatedObject获取cell上button对应所在的行
#import @interface TestCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIButton *btnTest;@end#import "ViewController.h"#import "TestCell.h"...
分类:其他好文   时间:2015-07-17 11:20:48    阅读次数:135
一些排序算法
头文件#include "StdAfx.h"/************************* 交换排序**************************///冒泡排序void BubbleSort(vector &v,int begin,int end);//快速排序void Q...
分类:编程语言   时间:2015-07-17 00:14:50    阅读次数:222
GL example 1
using UnityEngine;using System.Collections;public class joint{ public Vector3 org; public Vector3 end;}public class example : MonoBehaviour{ ...
分类:其他好文   时间:2015-07-16 21:47:03    阅读次数:127
[Bug]由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值"的解决方法(转)
原因如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法,将出现 ThreadAbortException 异常。您可以使用 try-catch 语句捕获此异常。 Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管...
分类:其他好文   时间:2015-07-16 21:33:03    阅读次数:81
LeetCode(16) 3Sum Closest
class Solution { public: int threeSumClosest(vector& nums, int target) { sort(nums.begin(), nums.end()); int differ; int length = nums.size(); bool mark = true;...
分类:其他好文   时间:2015-07-16 20:00:03    阅读次数:129
LeetCode:Remove Nth Node From End of List
problem:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. .....
分类:其他好文   时间:2015-07-16 18:17:10    阅读次数:111
通过WebViewJavascriptBridge实现OC与JS交互
这里照搬Github的Demo,其实还是很易懂的,首先,要在控制器的.h文件当中实现浏览器控件的协议:1 #import 2 3 @interface ExampleAppViewController : UINavigationController 4 5 @end 在.m方法当中,WebView...
分类:编程语言   时间:2015-07-16 16:10:31    阅读次数:119
Python的函数参数问题
先定义一个带默认参数的函数:def add_end(L=[]): L.append('END') return L使用下面的代码调用该函数:print(add_end([1,2,3]))print(add_end())print(add_end([1,2,3]))print(add_en...
分类:编程语言   时间:2015-07-16 15:38:54    阅读次数:120
论坛:主题列表按最后更新时间进行排序
数据库SQL语句中没有if..else的判断语句,但是oracle中有decode()函数可以实现这种判断语句,但是还可以用case..end,功能更加强大但此次运用特殊字段lastUpdateTime解决,提高了效率,只用查询一张表:
分类:编程语言   时间:2015-07-16 13:54:19    阅读次数:142
[CareerCup] 1.4 Replace Spaces 替换空格
1.4 Write a method to replace all spaces in a string with '%20'. You may assume that the string has sufficient space at the end of the string to hold ...
分类:其他好文   时间:2015-07-16 13:32:22    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!