#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
class Dog {
public:
Dog(string num) : name(num) {};
void Bark();
private:
string name;
};
void Dog::Bark() {
cout << name << endl;
}
int main() {
Dog mydog("happy");
mydog.Bark();
while(1){}
}
'2019 > c++' 카테고리의 다른 글
c++ 템플릿, 트리(미완) (0) | 2019.08.27 |
---|---|
C++ I/O 속도 문제 (0) | 2018.10.14 |
Visual Studio 에서 scanf, printf 사용하기 (0) | 2018.06.03 |
make, premake4 실험실 (0) | 2018.05.04 |
c++ 실험실 (0) | 2018.05.04 |