전체 글 (43) 썸네일형 리스트형 정수리터럴 레퍼런스 void Swap(int& L, int& R); void main(void) { Swap(20, 30); } Call by Reference 함수에 20, 30같은 정수 리터럴값을 넣으면 컴파일이 되지 않는다. 그렇다고 정수 리터럴값이 메모리에 안잡히는가? (X) - "코드" 섹션에 잡힌다 : 메모리 주소를 명시적으로 지정할 필요 없고 컴파일러와 운영체제가 관리하는 영역 코드 섹션의 이웃들 : 상수, 리터럴값, 실행코드, 테이블 값 * 다음 행으로 넘어가면 존재하지 않는다.(재참조 불가능) * 그럼 const는 어디 잡히는데 ? : 명시되어있지 않아서 컴파일러에따라 다를 수 있지만 대부분 data영역 대부분의 R-Value : 데이터 섹션 데이터 섹션은 세그먼트(segment) 중 하나이며, 초기화된 전.. 캡슐화란 대체 뭘까.. 멍청일기 최근에 멍청 일기 정리. 언리얼의 UIAnimation 은 무겁고, 대응되는 에셋이 필요하니, 위젯의 위치 등을 코드로 제어하여 애니메이션을 재생할 수 있게 해달라는 일을 받았다. https://github.com/benui-dev/UE-BUITween/tree/master GitHub - benui-dev/UE-BUITween: Unreal 4 UMG UI tweening plugin in C++ Unreal 4 UMG UI tweening plugin in C++. Contribute to benui-dev/UE-BUITween development by creating an account on GitHub. github.com 이건 그것을 구현해둔 오픈소스 플러그인이다. 사용예제는 다음과 같았다. .. 언리얼의 모듈이란.. Build.cs Uproject Target.cs 1. 모듈이란 - 내가 느낌상 이해한 것 모듈 : dll 빌드하는 단위. ___ API 단위임 (같은 모듈이면 같은 API) 이 클래스의 코드는 ubt에 의해서 이 이름의 dll에 뽑힙니다~~ https://docs.unrealengine.com/4.27/ko/ProgrammingAndScripting/ProgrammingWithCPP/Modules/ Unreal Engine Modules Modules are the building blocks of Unreal Engine's software architecture. You can organize your code into modules to create more efficient and maintainable projects. docs.unreale.. 05. 프로토타입 원형이 되는 인스턴스를 사용하여 생성할 객체의 종류를 명시하고, 이렇게 만든 견본을 복사하여 새로운 객체를 생성한다. 5.1 프로토타입 디자인패턴 나쁜코드 class Monster {} class Ghost : public Monster {} class Demon : public Monster {} ... class Spawner {} class GhostSpawner : public Spanwer {} class DemonSpawner : public Spawner {} 프로토 타입 패턴 - 도장찍듯이 어떤 객체가 자기와 비슷한 객체를 스폰할 수 있다 class Monster { virtual Monster* clone() = 0; } class Ghost : public Monster { public.. 04 관찰자패턴 https://medium.com/@GMGStudio/observer-pattern-how-to-use-this-crucial-design-pattern-in-game-development-with-unity-8967dffcde57 Observer pattern — How to use this crucial design pattern in game development with Unity The observer pattern is used by many developers because it solves so many problems. The observer pattern is used by so many people that C#… medium.com 옵져버클래스와 델리게이트 차이?? 델리게이트가 내부.. 프로그래밍패턴 03 경량 예제 https://refactoring.guru/design-patterns/flyweight Flyweight / Design Patterns / Structural Patterns Flyweight Also known as: Cache Intent Flyweight is a structural design pattern that lets you fit more objects into the available amount of RAM by sharing common parts of state between multiple objects instead of keep refactoring.guru 탕탕특공대 막연히 오브젝트풀을 잘 썼다고만 생각했는데 경량이려나 1. 주메모리에 올리는 데이터의 경우 다같이.. 게임프로그래밍패턴 2장 - 명령 https://learn.unity.com/tutorial/command-pattern# 명령 패턴 GOF 요청 자체를 캡슐화하는 것입니다. 이를 통해 요청이 서로 다른 사용자(Client)를 매개변수로 만들고, 요청을 대기시키거나 로깅하며, 되돌릴 수 있는 연산을 지원합니다. 박일 명령 패턴은 메서드 호출을 실체화(reify) 한 것이다. = 명령 패턴은 함수 호출을 객체로 감쌌다는 의미이다. = '콜백', '일급함수', '함수포인터', '클로저', '부분 적용 함수', = 명령 패턴은 콜백을 객체지향적으로 표현한 것. *실체화 : 어떤 개념을 변수에 저장하거나 함수에 전달할 수 있도록 객체(데이터)로 바꿀 수 있다. ㄴ 리플렉션 시스템 : 런타임에 자료형을 가져와 다룰 수 있게 한다. void Inp.. [ 프로그래머스] #131127 할인행사 https://school.programmers.co.kr/learn/courses/30/lessons/131127 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include #include #include #include #include #include using namespace std; void ResetMap(map& wantmap, queue& List) { while (List.size() > 0) { string& s = List.front(); if (wantmap.find(s) == wantmap.end.. 이전 1 2 3 4 5 6 다음