diff --git a/a.exe b/a.exe index 7e0954e..82e0026 100644 Binary files a/a.exe and b/a.exe differ diff --git a/test.cpp b/test.cpp index 20adc29..3e7d2c8 100644 --- a/test.cpp +++ b/test.cpp @@ -6,10 +6,10 @@ using namespace std; int main() { - yimian hh; - - hh.hi(); + yimian tomatotrees; + tomatotrees.hi(); + cout << tomatotrees.version<< endl; return 0; } diff --git a/yimian.cpp b/yimian.cpp index b3bd21e..d80dfb8 100644 --- a/yimian.cpp +++ b/yimian.cpp @@ -1,7 +1,6 @@ -#include #include"yimian.h" -using namespace std; +string yimian::version = "Version 0.0.1"; void yimian::hi() { diff --git a/yimian.h b/yimian.h index a9d38cf..d46b633 100644 --- a/yimian.h +++ b/yimian.h @@ -1,10 +1,16 @@ #ifndef YIMIAN_H #define YIMIAN_H +#include +#include + +using namespace std; + class yimian { public: void hi(); + static string version; }; #endif