본문 바로가기

빙수달 게임 개발 노트

검색하기
빙수달 게임 개발 노트
프로필사진 빙수달

  • 분류 전체보기 (70)
    • Programming (65)
      • 백준 (17)
      • 알고리즘 (19)
      • C++ (24)
      • WindowAPI (4)
      • C (1)
    • Devpedia : Game (3)
    • Dev Log : Game (2)
      • 유니티(Unity) (2)
      • 포트폴리오 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • 알고리즘
  • if문
  • string
  • Unity
  • 유니티
  • 동적할당
  • 코테
  • 구조체
  • 코딩
  • 코딩테스트
  • boj
  • WindowAPI
  • 아스키 코드
  • 프로그래밍
  • 배열
  • 윈도우api
  • 반복문
  • 백준
  • CPP
  • 최댓값
  • C++
  • 스프라이트
  • for문
  • 자료구조
  • 함수
  • 아틀라스
  • 단위변환
  • c#
  • 정렬
  • 문자열
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Stack (1)

빙수달 게임 개발 노트

[알고리즘] Stack 구현하기

// IntStack.h#ifndef ___IntStack#define ___IntStacktypedef struct { int max; // 스택 용량 int ptr; // 스택에 쌓여 있는 데이터의 개수 int* stk; // 스택의 첫 요소에 대한 포인터} IntStack;int Initialize(IntStack *s, int max); // 스택 초기화int Push(IntStack* s, int x); // 스택에 데이터를 푸쉬int Pop(IntStack* s, int* x); // 스택에서 데이터를 팝int Peek(const IntStack* s, int*x); // 스택에서 데이털르 피크void Clear(IntStack* s); // 스택 비우기int Capacity(cons..

Programming/알고리즘 2025. 1. 8. 22:49
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바