Skip to content
Bible, Lee, Data

Bible, Lee, Data

Faith, software, data, and everyday life.

CAll posts

Engineering

What Does a C Pointer Store, and What Does Dereferencing Actually Change?

The most confusing part of learning pointers is rarely the amount of code involved. The example above contains only two lines, yet x, &x, p, *p, and &p all mean different things.Trying to memorize each expression as an isolated syntax rule tends to work only until pointers appear alongside arrays, functions, or structures. A more reliable approach is to begin with the objects that exist in memor..

Engineering

How C Evaluates Expressions

C operators look simple at first.Addition uses +, division uses /, equality uses ==, and conditions are combined with &&. Anyone who has worked with another programming language will recognize most of these symbols.The difficulty begins when a seemingly ordinary expression produces an unexpected result.A value assigned to a double may still lose its fractional part. A comparison may claim that -..

Projects/Game Projects

Hangman Game Deadline Created in C Language

Deadline is a game inspired by the traditional Hangman game, where the term "deadline" refers to the due date. In this game, the goal is to guess an English word by guessing its individual letters, similar to Hangman. In the original Hangman game, blank spaces or underscores are drawn for each letter of the word, and when a player guesses a letter, if the letter is present in the word, it is fil..

Projects/Game Projects

C언어로 만든 행맨 게임 Deadline

Deadline은 '마감 기한'이라는 의미로, 영어 단어를 맞추는 Hangman 게임을 각색하여 만든 게임이다.기존 Hangman은 글자 수만큼 빈칸이나 밑줄을 그려서 26개 철자 중 하나를 대었을 때 단어 안에 그 글자가 있으면 단어의 해당하는 칸에 적고, 그렇지 않으면 기회를 잃게 된다.Deadline은 사람을 매다는 방식으로 게임을 진행하지 않고, 철자가 틀릴 경우 마감 기한이 임박하는 방식으로 진행되며, 일주일이 넘기 전에 영어 단어를 맞추면 게임에서 승리한다. ▶ 게임 인트로//DEADLINE 첫번째 인트로void INTRO(){ system("cls"); printf("\n\n\n"); printf(" ______ _______ _______ ______ ___ ..

Projects/Game Projects

C언어로 만든 캐주얼 게임 Number Train

Number Trian은 2015년도에 공부하다가 쉬면서 조금씩 만들었던 게임이다.플레이어가 역장이라는 설정이 있어서 화물 5개의 합계를 입력해 화물을 운송하는 방식의 간단한 덧셈 게임이다.CUI로 개발했지만 최대한 철로 위 기차 화물을 운송한다는 느낌을 주려고 했다.플레이어가 담당한 기차 10대 화물을 모두 운송하고 나면 결산이 나오며 하루 업무가 끝나게 된다. Number Trian is a game that I started developing in 2015. I worked on it gradually while taking breaks.The game features a setting where the player is a train conductor and involves a simple ad..