The Program

in programming •  7 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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

i learn it

Excellent