【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...

2015/09/08 21:47
16
【C++注意事项】4 指针 Pointers

2015/09/08 21:48
15
【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...

2015/09/08 21:49
46

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

2015/09/08 21:49
6
【OpenCV归纳】2 读写视频

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

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

2015/09/08 21:47
9
【C++注意事项】3 引用

2015/09/08 21:45
22 