S

@sim7391

Queue

C
12 hours ago
#include <stdio.h> #include <string.h> #include <stdlib.h> class Queue { private: int queue[5]; int head, rear; int size;

Stack2

C
12 hours ago
#include <stdio.h> #include <string.h> #include <stdlib.h> class Stack { int stack[5]; int top; int size; public:

Remote

C
12 hours ago
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <conio.h> #include <windows.h> void gotoxy(int x, int y){ COORD pos = {x, y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos); }

gui.c 한글 -> 영어

C
1 week ago
//gui.c /* 실행방법 : MSYS2 UCRT64에 cd .. cd .. cd C:/C_GUI(main.c랑 gui.c있는 폴더) gcc main.c gui.c -o pc-dashboard.exe $(pkg-config --cflags --libs gtk4) ./pc-dashboard.exe */

gui.c

C
1 week ago
//gui.c #include <gtk/gtk.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <windows.h> /* main.c에 정의된 Todo 자료구조와 전역 데이터 */

TODO PC Dashbord2

C
3 weeks ago
#include <gtk/gtk.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define MAX_TODO 100 typedef struct Todo{

main.c

C
4 weeks ago
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define MAX_TODO 100 #define MAX_MEMO 10000 typedef struct Todo{

오목

C
1 month ago
/* * 콘솔 오목 — 스타터 코드 * * 이미 완성된 것: 판(board), init_board, print_board, main의 입력 루프, run_tests * 여러분이 짜는 것: 미션 1 can_place / 미션 2 count_dir / 미션 3 check_win * 미션 4 종료 처리(main) / 미션 5 컴퓨터 AI * * 프로그램을 실행하면 먼저 테스트 결과(PASS/FAIL)가 나

menu

C
1 month ago
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <gtk/gtk.h> GtkWidget* entry; GtkWidget* result_label; void show_price(GtkWidget *widget, gpointer data){ const char *input;

CodeUp 4018 : 팰린드롬 수 찾기

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int reverse(int n) { int r = 0; while (n > 0) { r = r * 10 + (n % 10); n /= 10; }

Node 5

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node { int n; Node* next = NULL; }Node; Node* startNode = NULL;

이동 거리별 대기 시간

C
2 months ago
#include <stdio.h> double calculate_exact_cooldown_seconds(double distance) { if (distance <= 0) return 0.0; // 0km ~ 1km 구간 (0분 ~ 1분 비례) if (distance < 1.0) { return distance * 60.0; } // 1km ~ 5km 구간 (1분 ~ 2분 비례)

위도 경도 거리 구하기

C
2 months ago
#include <stdio.h> #include <math.h> #define PI 3.14159265358979323846 #define EARTH_RADIUS_KM 6371.0 // 지구의 평균 반지름 (단위: km) double degrees_to_radians(double degrees) { return degrees * (PI / 180.0); }

이동 거리별 대기 시간

C
2 months ago
#include <stdio.h> double calculate_exact_cooldown_seconds(double distance) { if (distance <= 0) return 0.0; // 0km ~ 1km 구간 (0분 ~ 1분 비례) if (distance < 1.0) { return distance * 60.0; } // 1km ~ 5km 구간 (1분 ~ 2분 비례)

CodeUp 1402 : 거꾸로 출력하기 3

C
2 months ago
#include <stdio.h> int main() { printf("Hello world!\n"); return 0; }

CodeUp 1410 : 올바른 괄호 1 (괄호 개수 세기)

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node { int n; Node* node; }Node; int main() {

CodeUp 1409 : 기억력 테스트 1

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node { int n; Node* node; }Node; int main() {

Node 4

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node { int n; Node* node; }Node; int main() {

Node 3

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node { int n; Node* node; }Node; int main() {

Node 2

C
2 months ago
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { float r = 3.14; float* p = &r;