Notice
Recent Posts
Recent Comments
Link
목록참조 기초 (1)
오븐 노트
[C++] 참조 기초
#include using namespace std; struct StatInfo { int hp; int attack; int defence; }; void CreateMonster(StatInfo* info) { info->hp = 100; info->attack = 8; info->defence = 5; } // 1) 값 전달 방식 // [매개변수][RET][지역변수(info)][매개변수(info)][RET][지역변수] void PrintInfoByCopy(StatInfo info) { cout
Develop/C++
2022. 7. 10. 19:32