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

📄 10_01.cpp

📁 一些C++的课件和实验源代码
💻 CPP
字号:
// 10_01.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "list.h"
#include <conio.h>
#include <iostream>
using namespace std;

int main(int argc, char* argv[])
{
	array<int> a(4), b(4);
	a[0] = 0;	a[1] = 1;	a[2] = 2;	a[3] = 3;
	b[0] = 10;	b[1] = 20;	b[2] = 30;	b[3] = 40;
	a.print();
	b.print();
	(a + b).print();

	array<double> c(3), d(3);
	c[0] = 11.11;	c[1] = 22.22;	c[2] = 33.33;
	d[0] = 32.23;	d[1] = 45.80;	d[2] = 67.20;
	c.print();
	d.print();
	(c + d).print();

	getch();	
	return 0;
}

⌨️ 快捷键说明

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