편집 기록

편집 기록
  • 프로필 nowp님의 편집
    날짜2020.03.06

    이코드가 비주얼 2019 C++에서 실행이안되요


    #include <stdlib.h>
    #include <stdio.h>
    #include <windows.h>
    #include <conio.h>
    
    void gotoxy(int x, int y)
    
    {
    
        COORD pos = { x,y };
    
        SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
    
    }
    
    void ma_in(void) {
    
        printf("▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩\n\t\t\tTHE 파쿠르\n▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩\n\n\n\n\n시작하려면 s키를 누르세요!");
        char a;
        a = getch();
        while (1) {
            if (a == 115) {
                system("cls");
                break;
            }
        }
    }
    void move(void){
    
        int a, x = 0, y = 0;
        while (1) {
            a = getch();
            if (a == 114) {
                y--;
            }
            else if (a == 115) {
                y++;
            }
            else if (a == 97) {
                x--;
            }
            else {
                x = x;
            }
            gotoxy(x, y);
            printf("a");
            Sleep(50);
            system("cls");
        }
    }
    
    int main() {
    
        int xy[30][30];
    RE:
        ma_in();
    
        system("cls");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 3);
        printf(" 이동: wsad, 활성화:F");
        SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0);
        move();
    }
    
  • 프로필 알 수 없는 사용자님의 편집
    날짜2020.03.06

    이코드가 비주얼 2019 C++에서 실행이안되요


    include

    include

    include

    include

    void gotoxy(int x, int y)

    {

    COORD pos = { x,y };
    
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
    

    }

    void ma_in(void) {

    printf("▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩\n\t\t\tTHE 파쿠르\n▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩\n\n\n\n\n시작하려면 s키를 누르세요!");
    char a;
    a = getch();
    while (1) {
        if (a == 115) {
            system("cls");
            break;
        }
    }
    

    } void move(void){

    int a, x = 0, y = 0;
    while (1) {
        a = getch();
        if (a == 114) {
            y--;
        }
        else if (a == 115) {
            y++;
        }
        else if (a == 97) {
            x--;
        }
        else {
            x = x;
        }
        gotoxy(x, y);
        printf("a");
        Sleep(50);
        system("cls");
    }
    

    }

    int main() {

    int xy[30][30];
    

    RE: ma_in();

    system("cls");
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 3);
    printf(" 이동: wsad, 활성화:F");
    SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0);
    move();
    

    }