📄 a_11_1.cpp
字号:
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
template <class Type>
Type multiplication(Type x, Type y) {
return x*y;
}
void main() {
int x = 8, y = 23;
double a = 2.342, b = 33.187;
cout << x <<" * "<<y << " = " << multiplication(x,y);
cout << endl;
cout << a <<" * "<<b << " = " << multiplication(a,b);
cin.get();//等待结束,以便调测程序,可以删除
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -