#include int main(void){ printf("hello
cnblogs!\n"); return 0;}
分类:
其他好文 时间:
2014-05-18 19:50:02
阅读次数:
245
package main import ("fmt")//对象定义type Rect
struct{x,y float64width ,height float64} //对象方法实现func (r *Rect)
Area()float64{return r.width*r.height}//Go语...
分类:
其他好文 时间:
2014-05-18 19:36:55
阅读次数:
405
#include #include #include #include #include
#include int init_win_socket(){ WSADATA wsaData; if(WSAStartup(MAKEWORD(2,2) ,
&wsaData) != 0) { return -...
分类:
其他好文 时间:
2014-05-18 18:57:26
阅读次数:
245
前言 本文将介绍 OpenCV 中的矩阵结构 CvMat
并提供一些很实用的技巧。CvMat的类型定义 1 typedef struct CvMat 2 { 3 int type; // 数据类型 4 int
step; // 行长度 5 int* refcou...
分类:
其他好文 时间:
2014-05-18 18:54:07
阅读次数:
1771
今天看资料时看到这样一段代码,记录下 public static bool operator
==(EntityBase entity1, EntityBase entity2) { if ((object)entity1 == null
&& (o...
分类:
其他好文 时间:
2014-05-18 18:51:59
阅读次数:
209
#includeint solver(const int a[],const int n,const
int t){ int total = 0; if (NULL == a && 0 >= n) return total; int
start = 0; int end = n-1...
分类:
其他好文 时间:
2014-05-18 18:51:03
阅读次数:
175
我们都知道指针是用来操作内存空间的,我们可以简单的拿来改变某个变量的值如:我们定义一个int
a = 5;然后定义一个指针int *p;将change(&a);利用这个调用函数change();用函数int change(int *p){*p =
10;return 1;}输出结果会是:a = 10...
分类:
其他好文 时间:
2014-05-18 02:26:42
阅读次数:
247
PrerequisiteHadoop 2.2 has been installed (and
the below installation steps should be applied on each of Hadoop node)Step 1.
Install R (by yum)[hadoop...
分类:
系统相关 时间:
2014-05-17 21:51:24
阅读次数:
671
//扩展方法$.GM.Format = function (source, params) { if
(arguments.length == 1) return function () { var args = $.makeArra...
分类:
Web程序 时间:
2014-05-17 21:49:16
阅读次数:
333
在研究了IOS中几种数据存储的技术 (1)XML属性列表 —— PList
(2)NSKeyedArchiver 归档 (3)Preference(偏好设置) (4)SQLite3 (5)Core
Data(以面向对象的方式操作数据库SQLite) 之后,比较有心得的体会:虽然通过文件...
分类:
移动开发 时间:
2014-05-17 21:05:04
阅读次数:
494