⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apr24.cpp

📁 矩阵类 简单的矩阵类的编写
💻 CPP
字号:
// Apr24.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "RationalNumber.h"
#include "Matrix.h"
#include "Complex.h"
#include "MyStr.h"

int main(int argc, char* argv[])
{
	MyStr str1;
	MyStr str2(str1); //copy constructor
	MyStr str3("Hello"); //带char * 的constructor
	str1 = str3; //operator =



/*	float x[] = {
		1, 2, 3, 4,
		5, 6, 7, 8,
		9, 10, 11, 12};
	Matrix A(3, 4, x);

	float y;
	float *p;
	p = A[1];
	y = p[2];
	
	y = A[1][2];
*/
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -