Moglobin's
article thumbnail
CMake
컴공 2022. 6. 20. 11:05

make (소프트웨어 [빌드 자동화 도구]) make는 소프트웨어 개발을 위해 유닉스 계의 운영체제에서 주로 사용되는 프로그램 빌드 도구이다. 여러 파일들끼리의 의존성과 각 파일에 필요한 명령을 정의함으로써 프로그램을 컴파일할 수 있으며 최종 프로그램을 만들 수 있는 과정을 서술할 수 있는 표준적인 문법을 가지고 있다. 위의 구조로 기술된 파일(주로 Makefile이라는 파일명)을 make가 해석하여 프로그램 빌드를 수행하게 된다. CMake CMake(Cross Platform Make)는 멀티플랫폼으로 사용할 수 있는 Make의 빌드관리시스템을 만들기 위한 오픈소스 프로젝트로 키트웨어와 인사이트 콘솔티엄에서 만들었다. 스스로 기존의 Make의 과정을 수행하지 않고 지정한 운영체제에 맞는 make 파일..

article thumbnail
article thumbnail
[C++] 오버로드와 템플릿 (Overloads and templates)
컴공 2022. 3. 12. 22:31

Overloads and templates - C++ Tutorials (cplusplus.com) Overloads and templates - C++ Tutorials 1234567891011121314 // template arguments #include using namespace std; template T fixed_multiply (T val) { return val * N; } int main() { std::cout

article thumbnail
OpenGL 비주얼 스튜디오 .dll 링킹 관련 오류 (glew와 freeglut 라이브러리 링킹 오류)
컴공 2021. 12. 1. 09:33

코드 맨 앞에 다음을 추가하면 해결될 수도 있다. #define GLEW_STATIC #define FREEGLUT_STATIC

article thumbnail
[C++] 함수 호출 후에도 변수 값이 안 변할 때: Why do variables not change their values after being called by a function in C++?
컴공 2021. 10. 17. 00:35

Why do variables not change their values after being called by a function in C++? - Quora Why do variables not change their values after being called by a function in C++? Answer (1 of 4): I think I know what you are asking. Variables are not called by a function, they are passed to a function. There are three basic ways to do that: int F( int x) - when you call this function a copy of your vari..

article thumbnail
[C++] stringstream
컴공 2021. 8. 22. 13:46

Basic Input/Output - C++ Tutorials (cplusplus.com)

article thumbnail
[C++] 프로그래밍 할 때 클래스를 사용하는 이유
컴공 2021. 8. 20. 00:42

Use Classes in Programming for Efficiency - dummies Use Classes in Programming for Efficiency - dummies Classes can be used to provide shortcuts and helpers throughout programming. For example, you might have a class to define a user. You can then add functions (known as methods) to that user class for common things that users might need to do, like update t www.dummies.com 클래스는 프로그래밍에서 지름길과 안내를..

article thumbnail
Lecture 5 : Scheduling and Binary Search Trees
컴공 2021. 7. 23. 18:02

Runway reservation system (Definition, How to solve with lists) Binary Search Trees (Operations) Runway Reservation System - Airport with single (very busy) runway (Boston 6 -> 1) - "Reservations" for future landings - When plane lands, it is removed from set of pending events - Reserve req specify "requested landing time" t - Add t to the set if no other landings are scheduled within k minutes ..

article thumbnail
Lecture 4: Heaps and Heap Sort
컴공 2021. 7. 23. 00:15

Priority Queue ( 우선순위 큐) 컴퓨터 과학에서, 우선순위 큐는 평범한 큐나 스택과 비슷한 축약 자료형이다. 그러나 각 원소들은 우선순위를 갖고 있다. 우선순위 큐에서, 높은 우선순위를 가진 원소는 낮은 우선순위를 가진 원소보다 먼저 처리된다. 만약 두 원소가 같은 우선순위를 갖는다면 그들은 큐에서 그들의 순서에 의해 처리된다(선입선출). * 우선순위 큐가 힙이라는 것은 널리 알려진 오류이다. 우선순위 큐는 "리스트"나 "맵"과 같이 추상적인 개념이다. 마치 리스트는 연결 리스트나 배열로 구현될 수 있는 것과 같이, 우선순위 큐는 힙이나 다양한 다른 방법을 이용해 구현될 수 있다. 우선순위 큐는 최소한 다음의 연산이 지원 되어야 한다: - insert_with_priority: 하나의 원소를..

article thumbnail