본문 바로가기

my_lesson325

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.
CPP - Repeat While, RackPaperScissors_Game CPP - Repeat While, RackPaperScissors_Game // Make a RockPaperScissorsGame using a Repeat while statement. #include #include using namespace std; #define MACROSTR(k) typedef enum SRP { SRP_S = 1, SRP_R, SRP_P, SRP_END }; static const char *srpStr[] = { "Scissors", "Rock", "Paper" }; int main() { int iSRP, aiSRP; SRP srp; srand((unsigned int)time(0)); cout 4) { cout 2019. 4. 3.
CPP - Condition If , Switch CPP - Condition If , Switch // Condition if , switch, enum, while #include #include #include #include using namespace std; enum UPGRADE{UPGRADE_1 = 1, UPGRADE_2, UPGRADE_3, UPGRADE_4, UPGRADE_5, UPGRADE_6, UPGRADE_7, UPGRADE_8, UPGRADE_9, UPGRADE_10, UPGRADE_11, UPGRADE_12, UPGRADE_13, UPGRADE_14, UPGRADE_15}; int main() { int iBuff; char cInput1, cInput2; const int iAttack = 0x00000001; const i.. 2019. 4. 3.
CPP - Operator CPP - Operator // What is there a operator #include #include using namespace std; int main() { int iInput1, iInput2; double dInput1, dInput2; // 사칙연산 // +,-,*,ㅗ,% // 연산의 우선순위는 () */ +- 관계연산 논리연산 대입연산(=) // 두개의 실수를 입력을 받아서 사칙연산을 실행해보자 cout dInput1 >> iInput1 >> iInput2; cout 2019. 4. 3.
CPP - DataType CPP - DataType // Datatype of CPP #include #include #include #define CHAR_INPUT_MAX 11 using namespace std; int main() { int iInput; char cInput_arr[CHAR_INPUT_MAX]; string sInput; float fInput; double dInput; long double ldInput; bool bInput; int x = 10, y = 20; // int cout iInput; cout 2019. 4. 3.
GIT - visual studio +github 기존 프로젝트 버전관리하기 Git - visual studio +github 기존 프로젝트 버전관리하기 1, Github에 기존 프로젝트 명과 동일한 저장소를 만든다.주소 기억 2. Visual studio 에서 Github와 연결할 기존 프로젝트를 연다.다른 저장소와 연결되어 있다면 연결을 끊어 주어야한다.3번 메뉴부분중 한곳을 선택하면 아래와 값이 작업 부분이 보인다.명령프롬프트를 선택한다..git폴더를 지우고 git과 관련된 메뉴를 실행 하려고 하면 깃 저장소가 아니라는 에러 메세지가 뜬다. 3, 열려 있는기존 프로젝트를github 와 연결하기 위해 설정 선택하고 리포지트리 설정 을 선택한다. 제일 아래에 원격부분에서 origin을 편집을 하거나 추가를 해준다. 다시 명령프롬프트로 이동해서 git init을 해준다. 2019. 3. 9.