목차
예전에 티비에서 유행하던 퍼즐 스트라이크
숫자 야구 게임 입니다.
숫자 야구 게임 입니다.
본문내용
#include //기본 3자리 수 야구뿐 아니라 *키로 설정 1~9자리 야구게임 가능합니다.
#include //multiple 파일 처리를 했기때문에 한 파일로 모을려면
#include "Puzzle_Strike.h" //Puzzle_strike.cpp와 Puzzle_strike.h 내용을 같이 모으면됩니다.
#define size 3
int main(){
int k;
pzstrike game(size);
cout.width(47);
cout<<"- PUZZLE STRIKE -"<
char input[11];
while(1){
cout<<"- Input "<
int count=1;
while(1){
while(1){
cout<
cin>>input;
if(strlen(input)==(unsigned)game.returnsize()) break;
if(input[0]=='*'){
cout<<" - another size : ";
cin>>k;
if(k>10){
cout<<" - size 1 ~ 10 "<
continue;
}
game.resize(k);
count=1;
continue;
}
cout<<" - incorrect number size !! plz, input "<
}
k=game.test(input);
cout<<"t"<
................
#include
#include "Puzzle_Strike.h" //Puzzle_strike.cpp와 Puzzle_strike.h 내용을 같이 모으면됩니다.
#define size 3
int main(){
int k;
pzstrike game(size);
cout.width(47);
cout<<"- PUZZLE STRIKE -"<
while(1){
cout<<"- Input "<
while(1){
while(1){
cout<
if(strlen(input)==(unsigned)game.returnsize()) break;
if(input[0]=='*'){
cout<<" - another size : ";
cin>>k;
if(k>10){
cout<<" - size 1 ~ 10 "<
}
game.resize(k);
count=1;
continue;
}
cout<<" - incorrect number size !! plz, input "<
k=game.test(input);
cout<<"t"<
소개글