http://www.cnblogs.com/yeagen/archive/2012/03/01/2375610.html1.Application.Lock和Application.UnLock一般配对出现,用于锁住Lock与UnLock之间的所有代码(注意不光锁住对于Application的赋值...
分类:
移动开发 时间:
2014-08-28 00:42:08
阅读次数:
250
识别字符串中的整数并转换为数字形式(40分)问题描述:识别输入字符串中所有的整数,统计整数个数并将这些字符串形式的整数转换为数字形式整数。要求实现函数:void take_num(const char *strIn, int *n, unsigned int *outArray)【输入】 strIn...
分类:
其他好文 时间:
2014-08-27 20:32:48
阅读次数:
251
缩进Python的最大特色是用缩进来标明成块的代码。这点和其他语言区别很明显,比如大家熟悉的C语言里:if ( flag>= 0 ){ num+=1; flag-=1;}而在python中:if flag>= 0 : num+=1 flag-=1num+=1和flag-=...
分类:
编程语言 时间:
2014-08-27 20:20:08
阅读次数:
252
1、int与Integer的区别int是基本数据类型,Integer是一个引用数据类型。e.g:int num = 100; // 不是对象Integer i = 100; // 是对象// num. 点不出属性和方法// i. 点出属性和方法Integer是整型的装箱类,可以装箱和拆箱 i = ....
分类:
编程语言 时间:
2014-08-27 20:13:38
阅读次数:
225
class Solution: # @param num, a list of integer # @return a list of lists of integers def permute(self, num): length=len(num) i...
分类:
编程语言 时间:
2014-08-27 20:11:28
阅读次数:
200
Beans GameTime Limit: 5 Seconds Memory Limit: 32768 KBThere are three piles of beans. TT and DD pick any number of beans from any pile or the same num...
分类:
其他好文 时间:
2014-08-27 18:32:48
阅读次数:
150
/**
*@category url_type 此方法是进行url模式pathinfo模式的处理
*/
function url_type(){
//url模式 控制器--方法的获取
$url = $_SERVER['PHP_SELF']."";
//echo $url,"";
$num =strpos...
分类:
Web程序 时间:
2014-08-27 16:40:48
阅读次数:
167
??
常量的基本类型转换,例如:int num(10.8),这种方式是隐式转换。
通过函数的构造函数实现转换。
类类转换函数,当构造函数不能将类型转换成基本类型时。所以就有了类类转换函数,通过这种方式。
案例:
#include
class fushu
{
public:
//通过加explicit的这种方式避免隐式转...
分类:
其他好文 时间:
2014-08-27 14:50:08
阅读次数:
236
1.静态联编,是程序的匹配,连接在编译阶段实现,也称为早期匹配。重载函数使用静态联编。
2.动态联编是指程序联编推迟到运行时进行,所以又称为晚期联编。switch语句和if语句是动态联编的例子。
#include
void go(int num)
{
}
void go(char *str)
{
}
//class
//::在一个类中
class A
{
public:
voi...
分类:
其他好文 时间:
2014-08-27 14:48:28
阅读次数:
212
简单BFS? 感觉不是很好写,不过我觉得我这种写法还是比较飘逸的。#include #include #include #include #include #include #include #include #include #include #include #include #include ...
分类:
其他好文 时间:
2014-08-27 14:27:37
阅读次数:
197