본문 바로가기

array6

C++ - Array_For_BingoGame ver 1.0 C++ - Array_For_BingoGame ver 1.0 Create numbers 1 to 25 at iBingo Shuffle numbers Input 5 numbers 1 to 25 at iInput Compare btween iBingo to iInput Bingo line check If it is more 4 lines, output BINGO !! array_for_bingoGame.cpp // Let's play bingo Game #include #include #include #include "MyLib.h" using namespace std; #define MATRIX 25 #define BINGO 5 void CreateNum(int* pArr, int sizeTot); voi.. 2019. 4. 27.
C++ - Array_For_numberPuzzleGame ver 1.0 CPP - Array_For_numberPuzzleGame ver 1.0 Mission : Let's make a game fo numberPuzzle Create a array size of 25 Asignment a value 1 to 24 and last value is INT_MAX Shuffle the array and shuffle except the last value. Replace INT_MAX with '*'. Use "w : up s : down a : left d : right q : quit " to move "*" array_for_numberPuzzleGame.cpp // array_ for _numberPuzzle Game #include #include #include #i.. 2019. 4. 26.
C++ - Array_For_LottoGame Ver 1.2 functional CPP - Array_For_LottoGame Ver 1.2 functional 안녕하세요, 다음 링크를 클릭해 회의에 참가하십시오: https://go.teamviewer.com/v14/m68206362 회의 ID: m68-206-362 Time : PM 23~24 감사합니다. boolean // Create a Game Lotto // 1. 선택되서 출력되는 로또 번호를 오름차순으로 정렬해보자 // 2. 사용자가 선택한 번호와 추첨번호가 일치하면 Congratulation 을 출력하게 하자 #include #include #include using namespace std; #define LOTTO 45 #define LSIX 6 typedef enum { FORTH = 3, THIRD, SECOND.. 2019. 4. 10.
C++ - Array_For_BaseballGame Ver.1.0 Mission : Let's make a Baseball Game Random input : 3 numbers between 1 to 9 without duplication. It is a game to find the hidden numbers in the form * * *. Enter three numbers until user find them. If the numbers provided at random are 7, 3, 8 and user enterd numbers are 1, 2, and 4. Outputs 'OUT' because there is no matching number. If the user enters 7,5,or 9, '1 STRIKE 0 BALL' is ouput becau.. 2019. 4. 5.
C++ - Array_For_LottoGenerator 1.1 CPP - Array_For_LottoGenerator #include #include #include using namespace std; #define LOTTO 45 typedef enum { FORTH = 3, THIRD, SECOND, FIRST }GRADE; static const char *grade[] = {NULL,NULL,NULL, "ForthGrade", "ThirdGrade", "SecondGrade", "FirstGrade" }; int main() { srand((unsigned int)time(0)); int iLotto[LOTTO] = {}; int iuInput, iaInput; int iuSort[6]={},iaSort[6] = {}; cout iuInput; iuInpu.. 2019. 4. 5.
CPP - Array _ For _ LottoGenerator 1.0 CPP - Array _ For _ LottoGenerator 1.0 // Create a game Lotto #include #include #include using namespace std; #define LOTTO 45 int main() { srand((unsigned int)time(0)); int iLotto[LOTTO] = {}; for (int i = 0; i 2019. 4. 4.