fuction 3

[C++] 14. TextRPG 함수화_전투

▶ 이전강의- 바로가기 [C++] 13. TextRPG 함수화_1▶ TextRPG강의- 바로가기 imenu; if (cin.fail()) { cin" data-og-host="lhy-info.tistory.com" data-og-source-url="https://lhy-info.tistory.com/entry/C-1-TextRPG%EB%A1%9C%EB%B9%84-%EB%A7%B5-%EC%BA%90%EB%A6%AD%ED%84%B0-%EB%AA%AC%EC%8A%A4%ED%84%B0%EC%A7%8lhy-info.tistory.com 1. 레벨업 테이블 추가...생략struct _tagLevelUpStatus{ int iAttackMin; int iAttackMax; int iArmorMin; int iArm..

C++/C++입문 2025.04.15

[C++] 12. 빙고게임 함수화

▶ 이전강의- 바로가기 [C++] 11. 함수와 변수▶ 이전강의- 바로가기 [C++] 10. 이중포인터▶ 이전강의- 바로가기 [C++] 9. Char, 구조체, void 포인터▶ 이전강의- 바로가기 [C++] 8. 배열과 포인트 연산▶ 이전강의- 바로가기 [C++] 7. 포인터▶ 이전lhy-info.tistory.com 1. 선언과 정의#include using namespace std;// 함수는 선언과 정의 부분으로 나눌 수 있음void SetNumber(int* parray);int main(){ return 0;}// 함수의 정의 부분void SetNumber(int *parray){ // 배열의 주소를 받아서 값을 변경 for (int i = 0; i - 위쪽 SetNumber은 선언, 아래 S..

C++/C++입문 2025.04.11