- 博客(9)
- 收藏
- 关注
原创 插值实现图像放缩
双线性插值matlab实现https://blog.csdn.net/smf0504/article/details/51304007A = double(imread('pro1.jpg'));nSize = 64;D=zeros(nSize,nSize);cof = 1024/nSize;for i = ceil(nSize/1024):1:nSize-ceil(nSize/1024)...
2018-05-23 00:39:12 199
原创 010:返回什么才好呢
#include <iostream>using namespace std;class A {public: int val; A(int n=123) { val = n; } A& GetObj() { return *this; }};int main(){ int m, n; A a; cout << a.val ...
2018-05-16 23:03:59 2683 3
原创 012:这个指针哪来的
#include <iostream>using namespace std;struct A{ int v; A(int vv) :v(vv) { } // 在此处补充你的代码 const A* getPointer()const { const A* p = this; return p; }};int main(){ const A a(10...
2018-05-16 22:28:00 1578
原创 011:Big & Base 封闭类问题
#include <iostream>#include <string>using namespace std;class Base {public: int k; Base(int n) :k(n) { }};class Big{public: int v; Base b; // 在此处补充你的代码 Big(int n) :b(n) { ...
2018-05-16 22:16:31 3119
原创 009:哪来的输出
#include <iostream>using namespace std;class A {public: int i; A(int x) { i = x; } // 在此处补充你的代码 ~A() { cout << i << endl; }};int main(){ A a(1); A * pa = new A(2); d...
2018-05-16 21:22:45 715
原创 008:超简单的复数类
#include <iostream>#include <cstring>#include <cstdlib>using namespace std;class Complex {private: double r, i;public: void Print() { cout << r << "+" <<
2018-05-16 21:13:28 1633 2
原创 007:返回什么才好呢
程序设计实习MOOC / 程序设计与算法(三)程序设计实习MOOC / 程序设计与算法(三)输入多组数据,每组一行,是整数 m 和 n输出先输出一行: 123 然后,对每组数据,输出两行,第一行是m,第二行是n#include <iostream>using namespace std;class A {public: int val; A(int m) { val ...
2018-05-16 11:56:28 3607
原创 INTEL MKL库安装记录
Visual Studio 2015安装了MKL 2018的,官网注册,等待邮件下载,坑爹的就是邮件我过了一天才收到。然后Visual Studio 里面用需要选择Sequential
2018-05-04 17:20:37 1341
原创 SQL SERVER安装记录
网上一直说装了VS之后再装SQL SERVER 会失败,但是因为数据库课要用,于是就下载了SQL SERVER 2014 电脑上是Visual Studio 2015,一路默认选项,没出问题,能用。...
2018-05-04 17:16:21 107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人