Explain

  • language:C+
  • sign:It is a notes.
#include <iostream>
class hack{
    std::string ip;
    std::string model;
    int count;
    int boolead;
  public:
   void show();
   hack(const char *ip_,const char *model_);
   ~hack(void);
}; 
//* analysis class
hack::~hack(void){
    std::cout<<std::endl<<"Exit.<^ V ^>";
}
// *structure class
// void hack::hack(const char *ip_,const char *model_){
hack::hack(const char *ip_,const char *model_):ip(ip_),model(model_){
    std::cout<<"OK~";
}

void hack::show(){
    std::cout<<"model:"<<model
        <<std::endl<<"ip:"<<ip;
}

int main(){
    hack a("192.168.1.1","DDOS");
    a.show();
    return 0;
}

Think you read!~