Programming 515

VS Code에서 Common Lisp 프로그래밍

Common Lisp - Visual Studio Marketplace Common Lisp - Visual Studio Marketplace Extension for Visual Studio Code - Common Lisp language support for VS Code marketplace.visualstudio.com 확장을 추천한다. hover documentation (Common Lisp HyperSpec만), jump to definition 등이 지원된다. 초보자에게는 Emacs + SLIME보다 사용하기 쉽다. 사용자 정의 함수에 대해 hover documentation이 안 되는 점이 아쉽다. 자동 들여쓰기가 안 되는 점이 아쉽다. 스크린샷: Common Lisp HyperSpec..

Programming 2023.10.26

C, C# - 콘솔 창 출력 인코딩 변경

SetConsoleOutputCP 함수 - Windows Console | Microsoft Docs SetConsoleOutputCP 함수 - Windows Console 호출 프로세스와 연결된 콘솔에서 사용하는 출력 코드 페이지를 설정합니다. docs.microsoft.com Console.OutputEncoding 속성 (System) | Microsoft Docs Console.OutputEncoding 속성 (System) 콘솔이 출력을 쓰기 위해 사용하는 인코딩을 가져오거나 설정합니다. docs.microsoft.com [C++] 윈도우 콘솔에서 UTF-8 출력하기 (tistory.com)

Programming 2023.10.05

C언어의 feof() 함수 사용에 대해

me.tistory.com :: C언어의 feof() 함수 사용에 대해 C언어의 feof() 함수 사용에 대해 Studies 카테고리는 제가 공부하다가 기록하는 용도로 씁니다. 혹시 여기에 기록된 것이 잘못되었다면, 댓글로 꼭 알려주세요. feof, file - end of file 이라고 해서 파일의 끝에 도달하면 멈춘다고 생 me.tistory.com 많은 프로그래머들이 C의 feof() 함수를 Pascal의 eof()처럼 사용하지만, C의 feof()는 파스칼의 그것과 같은 방식으로 작동하지 않습니다. 차이점이 뭘까요? 파스칼의 eof는 '다음'에 읽어오는 부분이 파일의 끝이라 실패하는 경우에 true를 리턴합니다. 반면 C의 feof는 '마지막' 함수가 실패하는 경우에 true를 리턴합니다.

Programming 2023.10.05

c - Why (and when) do I need to use parentheses after sizeof? - Stack Overflow

c - Why (and when) do I need to use parentheses after sizeof? - Stack Overflow Why (and when) do I need to use parentheses after sizeof? The below fails to compile: typedef int arr[10]; int main(void) { return sizeof arr; } sizeof.c:3: error: expected expression before ‘arr’ but if I change it to sizeof(arr); everything is ... stackoverflow.com According to 6.5.3, there are two forms for sizeof ..

Programming 2023.10.04