와악

  • 홈
  • 태그
  • 방명록

2025/12/10 1

[내일배움캠프 - 언리얼] DAY 10 - 포인터 실습

포인터로 함수 호출, 숫자를 출력#include using namespace std;void PrintNumber(int* pNumber){ cout 포인터와 레퍼런스로 두 수를 교환하는 함수를 제작#include using namespace std;void SwapByPointer(int* pA, int* pB){ if (pA == nullptr || pB == nullptr) return; // 예외처리 int temp; temp = *pA; *pA = *pB; *pB = temp;}void SwapByReference(int& refA, int& refB){ int temp; temp = refA; refA = refB; refB = temp;}int main(){ int A = 1; int B =..

내일배움캠프-언리얼 2025.12.10
이전
1
다음
더보기
프로필사진

와악

  • 분류 전체보기 (101)
    • 내일배움캠프-언리얼 (101)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Daum Corp. All rights reserved.

티스토리툴바