The Program

in #programming7 years ago

Coding

#include <iostream>
#include <string>
using namespace std;
template <class crypto,class noncrypt> class Money{
private:
    crypto btc;
    noncrypt usd;
    int pkr;
public:
    Money(crypto x, noncrypt y, int z){
    btc=x;
    usd=y;
    pkr=z;
    }
void show(){
cout<<"You have the crypto"<<btc<<"and  non crypto "<<usd<<" also the Pakistani rupee is "<<pkr<<endl;
}
};
int main (){
Money<string ,char> me("Bitcoin",'U',109);
me.show();
}

 

Written in & Compiler Used

The code is written in C++ the compiler that I used to compile this program is CodeBlocks

Programming is fun guys

This is damn right keep in mind

I hope you guys liked it

Sort:  

i learn it

Excellent