C++
文章平均质量分 54
XTL151384
这个作者很懒,什么都没留下…
展开
-
C++函数重载例题
DescrptionImplement a template function cmp which compares any type of two elements.Makes it suitable to compare any two int, double, float, char, string and any two same type of pointers.*If the fi...原创 2018-12-02 18:43:33 · 1095 阅读 · 0 评论 -
C++的简单输入输出例题
DescriptionC++的输入输出使用cin 和cout函数,这两个函数存在于** <iostream>** 头文件中。在C语言中,输出和输出一般需要指明变量的类型,而在C++中,输入和输出无须指明变量的类型。eg:int number1;float number2;char x;scanf("%d%f%c", &number1, &number...原创 2018-12-10 19:09:19 · 1670 阅读 · 0 评论