hey steemit and steemians.
Lets start the working and proof of the morning's program the half hand operator.
#include <iostream>
#include <string>
using namespace std;
class damon{
int a;
public:
damon(){
a=0;
}
damon(int b){
a=b;
}
void operator-=(int wolf){
a=a-wolf;
}
void depict(){
cout<<a<<endl;
}
};
int main (){
damon vamp(80);
vamp-=10;
vamp.depict();
return 0;
}
this is code in bode blocks.
https://steemitimages.com/DQmRLJwQ3wDWEGBZseqwYgLvNhBLJ53PH8BwP4RyrsxA2kR/A.jpg
executation.
https://steemitimages.com/DQmWLcvbSwGvcRVyiq4HtkBWVLdLRWT2B5eF9YKdqESCJ1U/A1q.jpg
some change and executation.
https://steemitimages.com/DQmNddZWCrfgiJcxZjsZ3BL5G6RiU7udS5sKxVqMDUSwHjy/A2.jpg
https://steemitimages.com/0x0/http://i.imgur.com/8LLIFX6.gif
https://steemitimages.com/DQmWjQo9ddXyVHLTJ2tFirEb1hUVJjnBf7RLVrVUzwkiRyt/coollogo_com-27655818.png