Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstdlib>
- #include"Move.h"
- using namespace std;
- int main(void)
- {
- while(1)
- {
- int rnum = (rand()%5) + 1 , tmp=0;
- Move dog(0,0);
- cout<<"주인은 [x:0/y:0]에서 댕댕이가 마음것 뛰어놀라고 풀어줍니다."<<endl;
- while(tmp<=rnum)
- {
- double mx = (rand()%10) + 1; double my = (rand()%10) + 1;
- Move m(mx,my);
- dog = dog.Move_add(m);
- dog.showmove();
- tmp++;
- }
- dog.reset(1.0,1.0);
- cout<<"그리고 주인의 다리를 비비면서 애정표현을 하는군요~~~"<<endl;
- cout<<"역시 귀여운 우리 댕댕이~" <<endl;
- cout<<"[다시실행하시겠습니다? 1)예 2)아니오]"<<endl;
- cout<<"Input>"; cin>>tmp;
- if(tmp==1) cout<<endl;
- else break;
- }
- }
Add Comment
Please, Sign In to add comment