articlewritingcafe.com –
#ifndef SDDS_STATUS_H#define SDDS_STATUS_H#include<iostream>#include<cstring>using namespace std;namespace sdds{class Status{char* description;int status_code;public:Status(char* str = NULL, int code = 0);Status(const Status& s);Status& operator=(const Status& s);~Status();Status& operator=(const char* str);Status& operator=(const int code);operator bool() const;operator int() const;operator char* () const;friend ostream& operator<<(ostream& out, const Status& s);Status& clear();};}#endif // !SDDS_STATUS_H
The post articlewritingcafe.com – Status.h appeared first on Articlewritingcafe.