码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
指针函数与函数指针的区别
《—》转自:http://www.cnblogs.com/gmh915/archive/2010/06/11/1756067.html《二》函数指针的用法:形式1:返回类型(*函数名)(参数表)1 char (*pFun)(int); 2 char glFun(int a){ return;} .....
分类:其他好文   时间:2015-04-15 22:59:02    阅读次数:148
C++编码练习3
1.关于构造函数。class CA{public: CA ():m_iData(0) { } CA(int a) {m_iData =a; } CA (const CA& _obj) { m_iData =_obj.m_iData; } CA& operator = (const CA& _cOb....
分类:编程语言   时间:2015-04-15 22:58:55    阅读次数:134
《大话数据结构》读书笔记——9.4简单选择排序
//c 实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 void swap(int& a,int& b) 5 { 6 int t =a; 7 a = b; 8 b = t; 9 }10 int _tmain(int a...
分类:编程语言   时间:2015-04-15 22:58:51    阅读次数:155
AT&T Assembly for Linux and Mac (sys_exit)
Exit() in C : (sys_exit.c)int main(void){ return 99; }Exit() in AT&T for Linux: (sys_exit.s).section .data.section .text.globl _start_start: ...
分类:系统相关   时间:2015-04-15 22:58:05    阅读次数:226
《大话数据结构》读书笔记——9.3冒泡排序
//C 实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 void swap(int* a,int* b) 5 { 6 int t =*a; 7 *a = *b; 8 *b = t; 9 }10 int _tmain(in...
分类:编程语言   时间:2015-04-15 22:56:51    阅读次数:175
树链剖分
先来LCA的: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define REP(i, s, n) for(int i = s; i = s; i --) 8 using namespace std; 9 const ...
分类:其他好文   时间:2015-04-15 22:55:26    阅读次数:193
Pascal's Triangle
/*杨辉三角的简单应用 res[i][j] = res[i-1][j]+res[i-1][j-1](j>0&&j > generate(int numRows) { vector >res; for(int i = 0 ; i ()); for(in...
分类:其他好文   时间:2015-04-15 22:54:36    阅读次数:153
金子的PHP之禅(PHP基础知识二)
一、php的标记风格和注释1.2.3.提示:如果要使用短标签方式需要在php.ini中开启short_open_tag注释:采用//、/* */等方式二、数据类型boolean (布尔型)string(字符型)int (整型)float (浮点型)array(数组)object(对象)null (特...
分类:Web程序   时间:2015-04-15 22:52:46    阅读次数:151
Pascal's Triangle II
/* 给一个k,返回第k行的杨辉三角 类似动态规划由于只要返回某一行,所以只要用一维维护即可*/class Solution {public: vector getRow(int rowIndex) { vectorres(rowIndex+1,0); ...
分类:其他好文   时间:2015-04-15 22:50:07    阅读次数:103
《大话数据结构》读书笔记——9.5直接插入排序
//C 实现 1 #include "stdafx.h" 2 #include "stdlib.h" 3 4 int _tmain(int argc, _TCHAR* argv[]) 5 { 6 int arr[6] ={0,5,3,4,6,2}; 7 int i,j; 8...
分类:编程语言   时间:2015-04-15 22:49:46    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!