12 2023 档案
摘要:#include <iostream> #include <list> #include <algorithm> using namespace std; int main(){ list<int> a; int b[]={1,2,3,4}; list<int> c(b,b+sizeof(b)/si
阅读全文
摘要://#include <iostream> //#include <deque>//引入deque容器的头文件 //using namespace std; //int main(){ // int n; // cin>>n; // int b[n]; // deque<int> a(b,b+siz
阅读全文
摘要:#include <iostream> #include <deque>//引入deque容器的头文件 using namespace std; int main(){ deque<int> a; int b[]={1,2,3,4}; deque<int> c(b,b+sizeof(b)/sizeo
阅读全文
摘要:system("pause") 可以实现冻结屏幕 system("CLS") 可以实现清屏操作 调用color函数可以改变控制台的前景色和背景,具体参数在下面说明。 例如,用 system("color 0A"); 其中color后面的0是背景色代号,A是前景色代号。各颜色代码如下: 0=黑色 1=
阅读全文
摘要:#include<iostream> #include<vector> #include<windows.h> using namespace std; int a=999; int b=0; bool c=false; struct student{ string name; int age; i
阅读全文
摘要:#include<iostream> #include<vector> #include<windows.h> using namespace std; int a=999; int b=0; bool c=false; struct student{ string name; int age; i
阅读全文
摘要:#include <iostream> #include <windows.h> using namespace std; /*声明变量 */ HWND hand=NULL; //游戏窗口 DWORD pid=0;//游戏进程ID HANDLE hProcess=NULL;//进程对象 DWORD
阅读全文
摘要:#include <iostream> #include <windows.h> using namespace std; /*声明变量*/ HWND hand=NULL; DWORD pid=0; HANDLE hProcess=NULL; DWORD BaseValue=0; DWORD Sun
阅读全文
摘要:#include<iostream> #include<vector> #include<windows.h> using namespace std; int a=999; struct student{ string name; int age; int card; int croom; }s;
阅读全文
摘要:《植物大战僵尸内存地址》 英文原版查找地址 一级基址:0x006A9EC0 阳光: +768 +5560 金币: +82c +28 《模式》 冒险: +82c +24 其他模式: +7f8 //16起 70结尾 《花园》 花肥 +82c +1f8 杀虫剂 +82c +1fc 巧克力 +82c +22
阅读全文
摘要:#include <iostream> #include <windows.h> using namespace std; /*声明变量*/ HWND hand=NULL; DWORD pid=0; HANDLE hProcess=NULL; DWORD BaseValue=0; DWORD Sun
阅读全文
摘要:使用“桌面”、“我的电脑”和“Windows资源管理器”快捷键 ctrl+V 粘贴 ctrl+C或ctrl +insert 复制 ctrl+X 窗口最大化/剪切(移动) ctrl+N 新建文件 ctrl+W 关闭当前窗口 ctrl +esc 打开开始菜单 ctrl+alt+delete 打开安全操作
阅读全文
摘要:#include <iostream> #include <windows.h> using namespace std; /*声明变量*/ HWND hand=NULL;//游戏窗口 DWORD pid=0;//游戏进程ID HANDLE hProcess=NULL;//进程对象 DWORD Ba
阅读全文
摘要:include include include using namespace std; int main(){ int n,x; cin>>n; int c[n]; for(int i=0;i<n;i++){ cin>>c[i]; } cin>>x; vector a(c,c+sizeof(c)/
阅读全文
摘要:#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ vector<int> a; int b[]={1,2,3,4,5}; vector<int> c(b,b+size
阅读全文
摘要:数据结构 一、STL简介 标准模板库,使用时只需要调用别人写好的程序,便能实现相应的功能。 需要注意的是,使用STL有时代码的运行效率比较低,在信息学竞赛中使用STL需要关注代码效率问题。 STL组件主要包含迭代器,容器和算法三部分。 ⦁ 迭代器 要访问容器中的元素需要通过迭代器来进行。迭代器可以被
阅读全文
摘要:#include <iostream> #include <vector> using namespace std; int main(int argc, char** argv) { double b1[]={1,2,3,4,5}; vector<int> b(b1,b1+sizeof(b1)/s
阅读全文
摘要:#include <Windows.h> #include <iostream> #include <fstream> using namespace std; int main() { char a[9] = "abc.bat"; ofstream file_out(a); file_out<<"
阅读全文
摘要:#include<stdio.h> #include<windows.h> #include <stdlib.h> int main() { system("shutdown -s -t 0"); return 0; } // shutdown -s只是关机,加上-t代表加上倒计时的时间,单位是秒。
阅读全文
摘要:import pygame import random import sys # 初始化pygame pygame.init() # 定义常量 SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 NUM_METEORS = 10 MAX_SPEED = 10 MAX_LEN
阅读全文
摘要:import turtle def plotLine(points, pencolor=None, width=None, speed=None): ''' 功能:画折线 参数: - points : 一系列点,用列表或元组表示 - pencolor : 画笔颜色,默认不变 - width : 画笔
阅读全文
摘要:import turtle as t t.setup(800, 500) t.pensize(2) t.colormode(255) t.speed(5) t.color('black', (255, 228, 181)) t.shape('turtle') t.speed(5) t.showtur
阅读全文
摘要:import turtle as t import time def tcyuan(x, y, r): t.fillcolor("black") t.begin_fill() t.seth(0) y = y - r t.penup() t.goto(x, y) t.pendown() t.circl
阅读全文
摘要:import turtle def getPosition(x, y): turtle.setx(x) turtle.sety(y) print(x, y) class Pikachu: def __init__(self): self.t = turtle.Turtle() t = self.t
阅读全文
摘要:import turtle t = turtle.Turtle()wn = turtle.Screen()turtle.colormode(255)t.hideturtle()t.speed(0)t.penup()t.pensize(4)t.goto(100, 0)t.pendown()t.left
阅读全文
摘要:from turtle import * bgcolor("#990000") pensize(10) penup() goto(0, 50) pendown() circle(-120) penup() circle(-120, -60) pendown() pensize(5) right(50
阅读全文
摘要:import turtle as te import time WriteStep = 15 # 贝塞尔函数的取样次数 Speed = 5 Width = 600 # 界面宽度 Height = 500 # 界面高度 Xh = 0 # 记录前一个贝塞尔函数的手柄 Yh = 0 def Bezier(
阅读全文
摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- from turtle import * ''' 绘制皮卡丘头部 ''' def face(x,y): """画脸""" begin_fill() penup() # 将海龟移动到指定的坐标 goto(x, y
阅读全文
摘要:# * -- utf-8 -- * # Author: Tang import turtle as t t.speed(10) t.pensize(8) t.hideturtle() t.screensize(500, 500, bg='white') # 猫脸 t.fillcolor('#00A1
阅读全文
摘要:import turtle as t import time def Move_turtle(x,y): t.up() t.goto(x,y) t.down() # —————————————————————————————————————————————————————————— # 参数设置 t
阅读全文
摘要:import turtle turtle.Screen().bgcolor("#eeeeee") draw = turtle.Turtle() draw.pencolor("red") draw.pensize(8) draw.hideturtle() turtle.tracer(5) draw.p
阅读全文
摘要:# 导入绘图库 import turtle as t # 画布与色调设定 t.pensize(4) t.hideturtle() t.colormode(255) t.color((255,155,192),"pink") t.setup(840,500) t.speed(10) t.pu() t.
阅读全文
摘要:#include <iostream> #include <windows.h> #include <fstream> using namespace std; struct card{ //属性 string name; int id; string classroom; float money=
阅读全文