加载中
【Project Euler】4 第四题

 //A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. //Find the largest palindrome made...

2015/09/08 21:51
6
【OpenCV归纳】4 关于HighGUI

 通过HighGUI(high-level graphical user interface)可以实现打开窗口、显示图像、读出和写入图像文件,处理鼠标、光标、键盘事件。而HighGUI主要分成“视频输入/输出”、“图像输入/输出...

2015/09/08 21:45
99
【OpenCV归纳】3 在实例中学习简单函数以及数据读写

 实例一 int main() { IplImage* img = cvLoadImage("6085.jpg", 1); IplImage* red = cvCreateImage(cvGetSize(img), img->depth, 1); IplImage* green = cvCreateImage(cvGetSize(img...

2015/09/08 21:45
40
【Project Euler】2 第二题

 //Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: //1, 2, 3, 5, 8, 13, 21, 34, ...

2015/09/08 21:48
20
【Project Euler】7 第七题

 //By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. //What is the 10 001st prime number? static void Main(string[] args) ...

2015/09/08 21:48
12
【Project Euler】9 第九题

 A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly one Pythagorean tr...

2015/09/08 21:47
19
【Project Euler】3 第三题

 //The prime factors of 13195 are 5, 7, 13 and 29. //What is the largest prime factor of the number 600851475143 ? static void Main(string[] args) { //int[] number = new int...

2015/09/08 21:51
9
【Project Euler】6 第六题

 //The sum of the squares of the first ten natural numbers is, //12 + 22 + ... + 102 = 385 //The square of the sum of the first ten natural numbers is, //(1 + 2 + ... + 10)2...

2015/09/08 21:48
24
【Project Euler】8 第八题

 A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 = 9 + 16 = 25 = 52. There exists exactly one Pythagorean tr...

2015/09/08 21:51
68
【Project Euler】1 第一题

 //If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. //Find the sum of all the multiples of 3...

2015/09/08 21:46
10
【Project Euler】5 第五题

 //2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. //What is the smallest positive number that is evenly divisible...

2015/09/08 21:49
12
继承和多态

 sealed关键字 如果我们将类标记为sealed,编译器将不会允许我们从这个类型派生。(C#结构总是隐式密封的。因此,我们永远不可以从结构继承结构,从类继承结构或从结构继承类。结构只能用...

2015/09/08 21:47
19
【OpenCV归纳】5 图像处理

 一、综述 本节我们将来探讨关于图像处理方面的诸多技术和应用。在学完了第一个常用的工具包之后,学习这一节将更加轻松。废话不多说,切入正题。 二、平滑处理和图像形态学 1、滤波器 ...

2015/09/08 21:46
234
【C++注意事项】7 Library vector Type

List Initializer or Element Count? In a few cases, what initialization means depends upon whether we use curly braces or parentheses to pass the initializer(s). For example, whe...

【C++注意事项】4 指针 Pointers

和上一节的引用类似,指针(pointer)是“指向(point to)”另外一种类型的复合类型。与引用类似,指针也实现了对其他对象的间接访问。然后指针和引用相比有许多不同。其一,指针本身就是一...

【C++注意事项】5 Top-level const , The auto and decltype Type Specifier

top-level const As we’ve seen, a pointer is an object that can point to a different object. As a result, we can talk independently about whether a pointer is const and whether...

字符串(C语言)

1.如果要声明一个字符串“NoMasp”,下面这行代码错在哪里? char name[] = {'N', 'o', 'M', 'a', 's', 'p'}; 如果想声明的是字符串,就需要在初始化时在结尾加上一个’\0’。或者可以直接用...

【OpenCV归纳】2 读写视频

 除了读入图片之外,读写视频也足够简单易学,下面来看看如何读写视频吧。 播放硬盘中的视频: #include "highgui.h" int main(int argc,char** argv) { cvNamedWindow("Test2",CV_...

2015/09/08 21:52
177
【C++注意事项】1 数据类型及类型转换

如何选择类型 1)当数值不可能为负时,选择无符号类型。 2)当数值超过了int的表示范围时,选用long long。 3)在算术表达式中不要使用char或bool,只有在存放字符串或布尔值时才使用它们。因...

【C++注意事项】3 引用

通俗来讲,引用(reference)就是给对象另外一个名字。 1)引用必须被初始化 int &ref; // 错误 int val=10; int &ref2=val; // ref2指向val(val的另一个名字) 在初始化变量时,初始值会...

没有更多内容

加载失败,请刷新页面

返回顶部
顶部