전체 글 (43) 썸네일형 리스트형 시퀀서트랙 다시 만드는 중 https://www.linkedin.com/pulse/ue4-sequencer-custom-tracks-roma-levin/ 프로그래머스 - 푸드 파이트 대회 #include #include #include using namespace std; string solution(vector food) { string answer = "0"; string substr; for(int i = 1; i 0) { substr.append(eachfoodNum, i + '0'); } } answer = substr + answer; reverse(substr.begin(), substr.end()); answer += substr; return answer; } string operator + _NODISCARD inline basic_string ope.. 좋아하는 블로그 모음 https://ansohxxn.github.io/ 평생 공부 블로그 : Today I Learned 🌙 공부 & 취미 블로그 ansohxxn.github.io 프로그래머스 - 타겟 넘버(DFS/BFS) C++ https://school.programmers.co.kr/learn/courses/30/lessons/43165 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이(BFS) #include #include #include using namespace std; int solution(vector numbers, int target) { int answer = 0; queue sumQueue; sumQueue.push(numbers[0]); sumQueue.push(numbers[0] * -1); for(int i = 1; i [프로그래머스] 연속 부분 수열 합의 개수 https://school.programmers.co.kr/learn/courses/30/lessons/131701 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr #include #include #include #include using namespace std; int solution(vector elements) { int answer = 1; //전체합 무조건 한 개라서 추가 vector particlesum; int totalsum = 0; for(int temvalue : elements) { totalsum += temvalue; } for(i.. 프로그래머스 햄버거만들기 (아직푸는중) 링크 : https://school.programmers.co.kr/learn/courses/30/lessons/133502?language=cpp 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr [풀이1 스트링으로?] #include #include #include using namespace std; const int bread = 1; const int vege = 2; const int meat = 3; int solution(vector ingredient) { int answer = 0; stringstream ss; copy(ingredient.. UE4) 모바일에서는 Hover이벤트 들어오지 않는다. 커서가 없는데 호버 들어오는것도 이상하긴 하지.... 호버 쓸 거면 Hold 중 2D영역 충돌체크 하라고.. 05. 책임과 메세지 명확한 책임과 역할을 지닌 참가자들이 협력에 참여해야 한다. 메세지를 통해서 책임을 수행한다. 객체지향의 세계는 자율적인 객체들의 공동체이다. 객체에게 할당되는 책임의 수준 역시 자율적이어야한다. 그러기위해서는 메세지가 1. '어떻게'가 아니라 '무엇을' 2. 책임을 자극하는 메세지 메시지 메시지 전송 : 객체의 행동을 유발하는 행위 - 수신자 + 메시지이름 + 인자(argument) - '어떻게' (X) / '무엇을'(O) - 객체의 외부외 내부를 나누는 기준 메서드 - 메시지를 처리하기 위해 내부적으로 선택하는 방법 - 클래스 안의 함수 또는 프로시저를 통해 - '어떻게' (O) / '무엇을'(X) - 실행시간에 어떤 메서드를 선택할지는 수신한 객체가 결정한다.(객체지향의 특징. 절차와 달라!) --.. 이전 1 2 3 4 5 6 다음