Template Function
2024-09-08 15:04:07
// TemplateFunction.cpp : Defines the entry point for the console application.
// #include "stdafx.h" template<typename T>
T MyMax(T a,T b)
{
return a>b ? a : b;
} int main(int argc, char* argv[])
{
int i=MyMax<int>(,);
int j=MyMax(,);
printf("%d\n%d\n",i,j);
return ;
} // 3
// 1
// Press any key to continue
最新文章
- DrawerLayout的openDrawer()和closeDrawer()方法
- winserver2008 management note
- BZOJ4519——[cqoi2016]不同的最小割
- Mustache.js前端模板引擎源码解读
- 史上最全的HTML、CSS知识点总结,浅显易懂。
- 12.Object-C--浅谈OC的内存管理机制
- 浅谈Redis数据库的键值设计(转)
- jsp之jsp基础
- linux下用非root用户重启导致ssh无法连接的问题
- DuiVision开发教程(15)-DUI文本控制基础类
- springmvc注解式事务手动回滚
- Python学习 Part7:类
- IntelliJ IDEA取消自动import所有import *
- Python_内置函数之round的幺蛾子
- mysql like 查不到结果 中文 查询优化
- CSS 简介 3
- 关于Mysql数据库的知识总结
- jQuery Ajax url使用方式
- JSON解析工具——Jackson的简单使用
- shell脚本学习指南-grep文本搜索命令-学习(3)
热门文章
- sql 语言--- DML,DDL,DQL,DCL,TCL,CCL
- 文本分类(TextCNN,Keras)
- 【Mac+Android+uiautomatorviewer】之报错:Unexpected error while obtaining UI hierarchy java.lang.reflect.InvocationTargetException
- mysql中,手动提交事务
- http://blog.csdn.net/baidu_31657889/article/details/52315902
- 订单BOM与销售BOM的区别
- C#写入Excel文件方式
- RabbitMQ学习之Routing(4)
- CMS-headless or non-headless, page-based or object-based storage?
- Spring Boot 框架下使用MyBatis访问数据库之基于XML配置的方式