diff --git a/a.exe b/a.exe index c21c399..7e0954e 100644 Binary files a/a.exe and b/a.exe differ diff --git a/test.cpp b/test.cpp index aa13ebb..e8051b7 100644 --- a/test.cpp +++ b/test.cpp @@ -1,4 +1,5 @@ #include +#include #include"yimian.h" using namespace std; @@ -7,8 +8,8 @@ int main() { yimian hh; - hh.hellow(); + hh.hi(); - - return 0; + + return 1; } diff --git a/yimian.cpp b/yimian.cpp new file mode 100644 index 0000000..b3bd21e --- /dev/null +++ b/yimian.cpp @@ -0,0 +1,9 @@ +#include +#include"yimian.h" + +using namespace std; + +void yimian::hi() +{ + cout << "Hellow Yimian~" << endl; +} diff --git a/yimian.h b/yimian.h index 0eaed38..a9d38cf 100644 --- a/yimian.h +++ b/yimian.h @@ -1,14 +1,10 @@ #ifndef YIMIAN_H #define YIMIAN_H -#include -using namespace std; + class yimian { public: - void hellow() - { - cout << "hhhh" << endl; - } + void hi(); }; #endif diff --git a/yimian.o b/yimian.o new file mode 100644 index 0000000..302ad54 Binary files /dev/null and b/yimian.o differ diff --git a/yimian_.cpp b/yimian_.cpp deleted file mode 100644 index 45eb07b..0000000 --- a/yimian_.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include"yimian_.h" -#include -using namespace std; - -void yimian::hellow() -{ - cont<<"Hellow Yimian~"<