본문 바로가기

C5

[42seoul] Philosophers : 식사하는 철학자 문제 📚 Philosophers @42seoul : (2021.01.04 ~ 2021.01.20) 📖 About 이 프로젝트는 기본적인 프로세스 스레딩, mutex, semaphore, shared memory을 배웁니다.(In this project, you will learn the basics of threading a process and how to work on the same memory space. You will learn how to make threads. You will discover the mutex, semaphore and shared memory.) C언어를 활용하여 Dining philosophers problem 문제를 3가지 방법으로 구현합니다. 사진 출처 : wiki 프로.. 2021. 10. 28.
[42seoul] minishell : 나만의 bash, 쉘 프로그램 만들기! ⌨️ minishell heeheeshell by yeha and kukim @42seoul : (2020.11.10 ~ 2021.01.03) 📖 About 간단한 쉘 프로그램을 구현합니다.(The objective of this project is for you to create a simple shell.) 작동은 bash와 동일합니다. bash의 작동 방식, Standard Stream, foreground & background process, fork, IPC, pipe, execve, signal 등을 공부합니다. 이전 프로젝트 libft, get_next_line 활용 구현 목록 echo, exit, return value, env, export, unset, cd, pwd $PATH mul.. 2021. 10. 28.
[42seoul] cub3d : Ray casting을 활용한 Wolfensteid3D 유사 그래픽 구현 📚 cub3d @42seoul : (2020.09.15 ~ 2020.11.02) 📖 About 이 프로젝트는 90년대 최초의 1인칭 슈팅 게임(Wolfenstein 3D)을 직접 구현합니다.(This project is inspired by the world-famous eponymous 90’s game(Wolfenstein 3D), which was the first FPS ever) ray casting 알고리즘을 공부합니다. 구현 mapfile에 따라 그래픽이 다르게 출력 벽, 장애물 통과 불가 --save 통해 플레이어 시작점 screenshot 저장 W,A,S,D,Q,E를 통해 이동, 시점 변환 가능, ESC 키 입력시 게임 종료 BGM, HUB 추가 📝 Review C로 컴퓨터 그래픽 알고리.. 2021. 10. 28.
[42seoul] Get_next_line : \n(개행) 단위로 파일 읽기 📠 Get_next_line @42seoul : (2020.07.01 ~ 2020.07.15) 📖 About 이 프로젝트는 fd에 저장된 파일 내용을 "\n" 개행 단위 줄로 반환하는 함수를 구현합니다.(The aim of this project is to make you code a function that returns a line ending with a newline, read from a file descriptor.) Type Function Description file read get_next_line(int fd, char **line) Write a function which returns a line read from a file descriptor, without the newlin.. 2021. 10. 28.
[42seoul] libft : 나만의 C 라이브러리 만들기 📚 libft @42seoul : (2020.04.15 ~ 2020.05.01) 📖 About 일반적으로 C언에서 자주 사용하는 함수들을 직접 구현합니다. (The aim of this project is to code a C library regrouping usual functions that you’ll be allowed to use in all your other projects.) 구현 목록 Libc Functions : , Non- Libc Functions Linked-list Functions 📝 Review C에서 include하여 사용하는 , 의 함수 뿐만 아니라 자주 사용되는 split, join 함수 등 직접 구현하면서 C의 기본 문법과 포인터 연산, 메모리 관리(Heap), Ma.. 2021. 10. 28.