int main()
{
std::cout << "화이팅""; << std::end1;
std::cout << "떙큐";
}
return 0;
end라인 1
class mainGame
{
public
}
생성자 : 객체가 생성이 됨과 동시에 실행되는 곳
mainGame :: ma
소멸자 : 객체가 종료됨과 동시에 실행되는 곳
정적할당
mainGame mg;
동적할당
mainGame* mg1 = new mainGame;
delete mg1;
return 0;
상속
class child : public mother
{
}
class mainGame
{
public:
//그냥 아이템 사용하는 함수
void UseItem();
//코인의 가스를 소모하는 함수
void UseItem(Int gas);
mainGame();
~mainGame();
}
vrectorTest::vectorTest()
{
//뱍터에 데이터를 삽입하려면 push_back()
_vNum.push_back(1);
_vNum.push_back(122);
_vNum.push_back(122222);
///백터안에 데이터의 개수를 알려면 size()
cout <<"백처안에 데이터 갯수:"<<__vNum.size() << end1;
for (int i =0; i<_vNum.size(); ++i)
{
}