World of Komastar

고정 헤더 영역

글 제목

메뉴 레이어

World of Komastar

메뉴 리스트

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • 분류 전체보기 (130)
    • Development (23)
      • Embedded (9)
      • C / C++ (4)
      • .NET (2)
      • Python (4)
      • HTML/CSS/JS (1)
      • PHP (1)
      • C# (0)
      • Unity3D (1)
      • Photography (1)
    • Server (3)
      • Windows (1)
      • Linux (2)
    • Dev Tools (5)
      • Git (4)
      • Editor (1)
    • Entertainment (0)
      • WOW:Warlords of Drenor (0)
      • WOW:Legion (0)
    • Review (24)
      • Device (13)
      • Application (0)
      • Game (4)
      • Restaurant (1)
      • Camera & Lens (0)
      • Exhibition (2)
      • Movie (2)
    • Photo (43)
      • 2012 (1)
      • 2013 (2)
      • 2015 (16)
      • 2016 (24)
      • 2017 (0)
      • 2018 (0)
      • 2019 (0)
      • 2020 (0)
      • 2021 (0)
    • STAR (26)
      • 홍진영 (26)
    • etc (1)
    • Project (0)
    • 무지개산방 (5)
    • Komas Talk (0)

검색 레이어

World of Komastar

검색 영역

컨텐츠 검색

C++

  • [C언어 연습문제] 알파벳 피라미드

    2014.06.04 by Komastar.Dev

  • [C언어 연습문제] 별로 사선 채우기

    2014.06.04 by Komastar.Dev

  • Windows Console Command TREE 를 구현해보자

    2014.05.27 by Komastar.Dev

[C언어 연습문제] 알파벳 피라미드

Windows 7 64bit / Visual Studio 2013 Express 32bit#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { char ch = 'A'; int height = -1; printf_s("Input Height : "); scanf_s("%d", &height); for (int heightCount = 0; heightCount < height; heightCount++) { for (int spaceCount = 0; spaceCount < height - heightCount; spaceCount++) { printf_s(" "); } for (int widthCount = 0; widthCount < heightCo..

Development/C / C++ 2014. 6. 4. 14:07

[C언어 연습문제] 별로 사선 채우기

환경 : Windows 7 64bit / Visual Studio 2013 Express#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { int width = -1; int height = -1; int gap = -1; printf_s("Input Width : "); scanf_s("%d", &width); printf_s("Input Height : "); scanf_s("%d", &height); printf_s("Input Gap : "); scanf_s("%d", &gap); int gapPrint = 0; for (int printCount = 0; printCount < height * width; printCount++) { if (..

Development/C / C++ 2014. 6. 4. 13:56

Windows Console Command TREE 를 구현해보자

2014. 05. 27. 10:00 작성 시작 Windows 7 64bit Visual Studio Express 2013 for Windows Desktop 32bit 윈도우 명령창에서 동작하는 명령어인 tree 를 C++로 구현한다. 외관상 같은 결과를 보이도록 동작하게 만드는 것이 목표이다. 우선 tree의 출력 내용을 본다. 윈도우 명령창을 실행시키고 tree를 입력한다. 현재 경로의 하위 폴더를 모두 표시해준다. 옵션을 알아보기 위해 도움말을 호출해본다. 도움말을 보는 옵션은 /? 이며 윈도우 명령어들은 이 옵션으로 도움말을 볼 수 있다. 도움말에 옵션이 있으니 옵션을 사용해보도록 한다. 기본적으로 폴더만 보여주는데 /f 옵션을 추가하니 설명대로 파일도 출력된다. /a 옵션을 보자 깔끔한 그래픽..

Development/C / C++ 2014. 5. 27. 10:31

추가 정보

인기글

최신글

페이징

이전
1
다음
TISTORY
World of Komastar © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바