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 learn it
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Excellent
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit