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()
{
yimian hh;
hh.hi();
yimian tomatotrees;
tomatotrees.hi();
cout << tomatotrees.version<< endl;
return 0;
}

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

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

Loading…
Cancel
Save