码迷,mamicode.com
首页 >  
搜索关键字:square    ( 2122个结果
第八章--函数进阶
内联函数:在函数声明和函数定义前加上inline一个简单的计算平方的代码:#include using namespace std; inline double square(double x) { return x * x; }; int main() { cou...
分类:其他好文   时间:2014-08-01 22:32:42    阅读次数:190
poj 2676
Sudoku Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 13665   Accepted: 6767   Special Judge Description Sudoku is a very simple task. A square table with...
分类:其他好文   时间:2014-08-01 19:55:52    阅读次数:323
poj Sudoku(数独) DFS
SudokuTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 13665Accepted: 6767Special JudgeDescriptionSudoku is a very simple task. A square table...
分类:其他好文   时间:2014-08-01 19:00:32    阅读次数:333
Armadillo之求矩阵的逆(inverse)
求一个矩阵的逆(inverse or multiplicative inverse)使用矩阵的.i()方法或用inv()函数 m.i()?//返回m的逆 1 若m不是方正的(square),则函数抛出std::logic_error异常。 2 如果m是奇异的(singular),则输出的矩...
分类:其他好文   时间:2014-08-01 14:01:52    阅读次数:455
javascript之Function函数
在javascript里,函数是可以嵌套的。 如: function(){ funcrion square(x){ return x*x; } return square(10); }在javascript里,将函数绑定给一个对象,用对象调用的函数称为方法,容易跟...
分类:编程语言   时间:2014-08-01 12:55:31    阅读次数:188
ZOJ 2165 Red and Black
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a...
分类:其他好文   时间:2014-08-01 12:50:41    阅读次数:285
C++ 函数对象
C++中有一种类叫函数对象又称仿函数,到底什么是函数对象呢?其实函数对象就是一个类实现了括号操作符重载,即称为函数对象、仿函数,因为它的对象可以像使用一个函数一样来使用。 1 #include 2 using namespace std; 3 4 class Square 5 { 6 publi.....
分类:编程语言   时间:2014-08-01 10:35:31    阅读次数:243
HDU 1045 Fire Net 贪心
Problem Description Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a street or a piece of wall. A blockh...
分类:Web程序   时间:2014-07-31 21:05:27    阅读次数:356
Bootstrap Thumbnail
Square Thumbnail with ImageThe above code creates a square thumbnail with an image on the inside.Examples:The following attributes can be added to any...
分类:其他好文   时间:2014-07-31 16:35:36    阅读次数:246
javascript学习笔记------概念相关
javascript中的函数、对象1. 在javascript中,函数是被当成一种数据类型,它可以被存储在一个变量、数组、对象中,可以被当作参数传递到另一个函数中。函数就像是字符串和数字这样的的数据类型,它可以是其它对象的一个属性2. 函数定义的三种方式:function square(x) { r...
分类:编程语言   时间:2014-07-31 13:12:06    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!