master
hhCandy 5 years ago
parent f155cf8613
commit b4bf49bc51
  1. BIN
      a.exe
  2. 6
      test.cpp
  3. 3
      yimian.cpp
  4. 6
      yimian.h

BIN
a.exe

Binary file not shown.

@ -6,10 +6,10 @@ using namespace std;
int main() int main()
{ {
yimian hh; yimian tomatotrees;
hh.hi();
tomatotrees.hi();
cout << tomatotrees.version<< endl;
return 0; return 0;
} }

@ -1,7 +1,6 @@
#include<iostream>
#include"yimian.h" #include"yimian.h"
using namespace std; string yimian::version = "Version 0.0.1";
void yimian::hi() void yimian::hi()
{ {

@ -1,10 +1,16 @@
#ifndef YIMIAN_H #ifndef YIMIAN_H
#define YIMIAN_H #define YIMIAN_H
#include<iostream>
#include<string>
using namespace std;
class yimian class yimian
{ {
public: public:
void hi(); void hi();
static string version;
}; };
#endif #endif

Loading…
Cancel
Save