Skip to main content

[Unix/Linux] C – 하위 디렉토리 출력하는 프로그램

#include <unistd.h> #include <sys/types.h> #include <dirent.h> #include <stdio.h> #include <sys/stat.h>   // 인수로 전달 받은 디렉토리의 하위 디렉토리를 출력하는 함수. void subdirOutput(char *wd);   // 디렉토리 들여쓰기를 위한 디렉토리 경로 레벨 저장용. int indent = 0;   int main() { printf(”Sub-Directory Ouput!!!\n”); printf(”———————-\n”);   // 현재 디렉토리의 하위 디렉토리를 출력시킨다. subdirOutput(”.”);   return 0; } […]

Read More

[C/C++] 소코반 게임

처음 접해보는 윈도우프로그램이라서 그런지 시간이 많이 걸렸다.. 정말 많이 부족함을 느끼는구나 ㅠ_ㅠ…     하지만 좋은 경험이 된것 같다.. 내 멋대로 주석과 많이 부족한 소스지만 기록을 남겨본다.. [#M_소스보기|접기| /* Program Sokoban_Win ver.00    */ /* Romantic Programmer Teddy    */ #include ”stdafx.h” #include <Windows.h> #include ”resource.h”    // 비트맵 리소스를 가지고 있음. #include <string.h> LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); […]

Read More