DERUNS QWSSDX POSJSS 238281 231123 982312
阅读全部 | 2025年8月15日 10:39
#include<string.h>
struct student
{int num;
char name[20];
float score[3];
}stu;
main()
{scanf("%d%s%f%f%f",&stu.num,&stu.name,&stu.score[0], /*要记得每个都要加取地址符*/
&stu.score[1],&stu.score[2]);
void print(struct student *);/*不能在此声明函数*/
print(&stu);
......................
阅读全部 | 2025年7月29日 18:28
#include <iostream>
#include <format>
#include <vector>
#include <string>
#include <thread>
#include <chrono>
#include <random>
#include <ranges>
#include <conio.h>
#include <windows.h>
#include <ctime>
#include <cstdlib>
......................
阅读全部 | 2025年7月29日 13:54
import pygame,sys,random
from pygame.locals import *
#定义颜色变量 目标方块的颜色
redColor = pygame.Color(250,0,0)
#贪吃蛇的颜色
whiteColor = pygame.Color(255,255,255)
#背景颜色
blackColor = pygame.Color(0,0,0)
def gameOver():
pygame.quit()
sys.exit()
......................
阅读全部 | 2025年7月28日 18:50
import pygame,sys,random
from pygame.locals import *
#定义颜色变量 目标方块的颜色
redColor = pygame.Color(250,0,0)
#贪吃蛇的颜色
whiteColor = pygame.Color(255,255,255)
#背景颜色
blackColor = pygame.Color(0,0,0)
def gameOver():
pygame.quit()
sys.exit()
......................
阅读全部 | 2025年7月28日 18:50
import pygame
import random
def main():
# 初始化pygame
pygame.init()
# 默认不全屏
fullscreen = False
# 窗口未全屏宽和高
WIDTH, HEIGHT = 1100, 600
......................
阅读全部 | 2025年7月28日 18:47