跳到正文

Huxuanjie0517

795779

小伙子,不要再不登出了

在洛谷打开
资料、奖项与版本

资料

编号
795779
抓取

奖项

2025 CSP-J
一等奖
2025 CSP-S
三等奖
2024 CSP-J
一等奖
2023 CSP-J
一等奖

Apliuyao.top
123.170.118.114
[推箱子] 我是**
Acwing.com

贪吃蛇

localStorage.cp6_player_id = “581252af-d8d3-45c2-956c-7c3864df64e8”;

https://nanniang-1tw.pages.dev/

C++
#include <windows.h>
#include <stdio.h>

void getCursorPosition(int *x, int *y) {
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    CONSOLE_SCREEN_BUFFER_INFO csbi;
    
    if (GetConsoleScreenBufferInfo(hConsole, &csbi)) {
        *x = csbi.dwCursorPosition.X;
        *y = csbi.dwCursorPosition.Y;
    }
}

int main() {
    int x, y;
    
    printf("Hello World\n");
    printf("This is a test\n");
    
    getCursorPosition(&x, &y);
    printf("当前光标位置: X=%d, Y=%d\n", x, y);
    
    system("pause");
    return 0;
}
共 1 篇
  1. 学习·文化课

    做干净的体侧

    今天下午我们进行了月考体侧。我跑了4分42然后报了4分30.本以为已经减得够多了,然后…… 我发现一个跑在我后面的人时间和我一样!(他比我晚将近30秒) 另一位比我晚的报了4分10秒!!!(他比我晚将近10秒) 那还说啥了,做干净的体侧