본문 바로가기

빙수달 게임 개발 노트

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

  • 분류 전체보기 (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
  • C++
  • 아스키 코드
  • 함수
  • 배열
  • CPP
  • boj
  • 단위변환
  • 아틀라스
  • 코딩테스트
  • Unity
  • string
  • 자료구조
  • 문자열
  • 윈도우api
  • 코딩
  • 스프라이트
  • 유니티
  • c#
  • 프로그래밍
  • 동적할당
  • 백준
  • 구조체
  • 정렬
  • 코테
  • WindowAPI
  • for문
  • if문
  • 반복문
  • 최댓값
  • 알고리즘
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Selection Sort (1)

빙수달 게임 개발 노트

[알고리즘] 단순 선택 정렬(Straight Selection Sort)

#include #include using namespace std;int main(){ const int num = 5; int arr[num] = { 0 }; int minidx = 0; // 가장 작은 값 인덱스 기억 for (int i = 0; i > arr[i]; } for (int i = 0; i arr[j]) { minidx = j; //swap(arr[i], arr[j]); } } if (minidx != i) { swap(arr[i], arr[minidx]); } } f..

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

Blog is powered by kakao / Designed by Tistory

티스토리툴바