Template 您所在的位置:网站首页 template是什么意思 Template

Template

2022-05-03 15:41| 来源: 网络整理| 查看: 265

使用方法

 

function_name  (parameters); 

 

int

 x,y; 

GetMax  (x,y); 

 

对于内部类型,通常是可以无需制定具体的类型,编译器会自动识别,

 

而是写成:

 

int

 x,y; 

GetMax(x,y); 

 

//x

y

为相同的类型

 

 

int

 x; 

long y; 

GetMax(x,y); 

 

//x

y

为不相同的类型

 

报错

 

两种不同的内部类型

 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有