Rabu, 14 September 2016

program 1.5 reference parameter

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
template<class T>
T abc(const T &a, const T &b, const T &c){
 return a+b+b*c+(a+b-c)/(a+b)+4;       
}


main(){

cout<<abc(2,3,4)<<endl;
   
}


Tidak ada komentar:

Posting Komentar