All
-
OpenFrameworks 셋업 가이드 (VS2017)Programming/oF 2019. 3. 4. 17:14
오픈프레임웍스(openframeworks)란? 오픈프레임웍스(openFrameworks)는 C++를 기반으로 한 오픈 소스 라이브러리로서 "창의적인 코딩"을 위해 디자인되었다. 윈도우, Mac OS X, 리눅스 등 대부분의 플랫폼에서 작동하는 크로스 플랫폼 소프트웨어 프레임워크이며 Zachary Lieberman, Theo Watson, Arturo Castro, 오픈프레임웍스 커뮤니티에 의해 공동 개발되었다. 다운로드 및 설치 1. DOWNLOADOF download 페이지 참고 2. SETUPVisual Studio setup 페이지 참고 + 위 셋업 가이드엔 안나와있지만 VS2015이후인 2017부터는 설치할 때 windows 8.1 SDK 및 UCRD SDK와 데스크톱용 VC++ 2015.3 V1..
-
[컴파일 에러] error C2371else/error 2019. 2. 11. 16:08
IDE: Visual studio 2017language: C++에러난 지점 : struct TagPoint { int x; int y; }; typedef TagPoint POINT; typedef TagPoint* _POINT; Error error C2371: 'POINT': 재정의. 기본 형식이 다릅니다. 오류 해결법 C2371에러는 오류 메시지와 같이 redefinition일때 발생한다. 나의 경우는 구조체 포인터의 POINT부분에서 에러가 났는데 POINT STRUCTURE 를 클릭해서 읽어보면 알 수 있듯이 windows.h헤더파일에 포함되어있는 구조체 포인터의 이름과 선언한 구조체 포인터 변수의 이름이 같아 문제가 생긴 것 이다. - C2371에러의 경우 오류목록 하단의 메세지를 클릭하면 ..
-
[c/c++] call-by-value와 call-by-referenceProgramming/C++ 2019. 1. 8. 19:42
*열혈C 프로그래밍 강의를 듣고 정리한 내용입니다. 잘못된 정보나 오타가 있을시 피드백 부탁드립니다.* - 들어가기전 함수에게 인자를 전달하는 형태는 여러가지가 있습니다. C에서는 call-by-value와 call-by-reference가 가장 많이 쓰이는 형태이며 함수의 인자로 전달되는 대상에 따라 함수의 호출 방식이 구분되어집니다. 단순히 값을 인자로 전달하는 경우를 '값에 의한 호출' 즉, call-by-value라 하고 메모리 접근에 사용되는 주소값을 인자로 전달하는 경우를 '참조에 의한 호출' 즉, call-by-reference라 합니다. Call-by-value (값에 의한 호출) : 변수(메모리 공간에 저장된 값)의 값을 복사하여 함수의 인자로 전달하는 방식#include using na..
-
[C/C++] 백준 1924번 2007년Logic/백준 2019. 1. 2. 18:01
#include #include using namespace std; class C_date { public: int x, y; int temp; int month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; string date[7] = { "SUN","MON", "TUE", "WED", "THU", "FRI", "SAT" }; void FindDate(){ cin >> x >> y; temp = 0; for (int i = 0; i < x; i++) { y += month[i - 1]; } temp = y % 7; } void PrintDate(){ switch (temp) { case 0: cout
-
[컴파일 에러] Error C2664else/error 2018. 12. 30. 15:20
IDE: Visual studio 2017language: C++에러난 지점 : void setStage(char Maze[21][21], _POINT pPlayerPos, _POINT pStartPos, _POINT pEndPos) void Output(char Maze[21][21], _POINT pPlayerPos) void MoveChr(char Maze[21][21], _POINT pPlayerPos, char cinput) Error error C2664: 'void setStage(char [][34],_POINT,_POINT,_POINT)': 인수 2을(를) 'POINT *'에서 '_POINT'(으)로 변환할 수 없습니다. error C2664: 'void Output(char [][34]..
-
[QT] QPushbutton으로 새창 열기Programming/QT 2018. 11. 29. 22:02
*Qt 공부를 위해 기록한 포스팅입니다. 잘못된 정보나 오타가 있을시 피드백 부탁드립니다.* 버튼 이벤트로new window 열기 이번 포스팅은 안드로이드 스튜디오를 배워본 분들이라면 이해하기 쉬울지도 모릅니다 :) 안드로이드 스튜디오에서 새창을 띄우기 위해 intent를 이용하여 activity를 이동했듯 qt도 비슷한 원리로 구현되기 때문입니다. 그럼 먼저 안드로이드에 activity와 같은 역할을 하는 design form을 새로 생성해볼까요 1. New Design Form 클래스 생성 qt design form calss -> dialog without buttons 순서로 뉴 폼을 만들면 자동으로 헤더와 리소스 파일이 생성됩니다. 2. 헤더파일 추가 - pushbtn.h (첫번째 프로젝트 파일..