首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <iostream>
using namespace std;
int main()
{
    string n;
    string a;
    string b;
    cin >> n;
    cin >> a >> b;
    cout << "请输入账户名:" << endl;
    cout << n << endl;
    cout << "请设置密码:" << endl;
......................
阅读全部 | HZH是中国人 贴于 2025年9月8日 07:50     hide bbsi
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
static struct FastInput {
  static constexpr int BUF_SIZE = 1 << 20;
  char buf[BUF_SIZE];
  size_t chars_read = 0;
  size_t buf_pos = 0;
  FILE *in = stdin;
  char cur = 0;
 
  inline char get_char() {
    if (buf_pos >= chars_read) {
......................
阅读全部 | yywx2023 贴于 2025年9月6日 09:45     hide bbsi
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
static struct FastInput {
  static constexpr int BUF_SIZE = 1 << 20;
  char buf[BUF_SIZE];
  size_t chars_read = 0;
  size_t buf_pos = 0;
  FILE *in = stdin;
  char cur = 0;
 
  inline char get_char() {
    if (buf_pos >= chars_read) {
......................
阅读全部 | yywx2023 贴于 2025年9月6日 09:44     hide bbsi
import tkinter as tk
from tkinter import messagebox
import random

class SnakeGame:
    def __init__(self, master):
        self.master = master
        self.master.title("贪吃蛇游戏")
        self.master.geometry("600x500")
        self.master.resizable(False, False)
        
        # 游戏参数设置
......................
阅读全部 | wyu8888 贴于 2025年8月21日 14:56     hide bbsi
DERUNS QWSSDX POSJSS 238281 231123 982312
阅读全部 | wengzixi 贴于 2025年8月15日 10:39     hide bbsi
<div class="row">
  <div class="medium-12 columns">
    <div class="panel">
      <h1>Foundation 页面</h1>
      <p>重置窗口大小,查看效果!</p>
      <button type="button" class="button small">我是按钮!</button>
    </div>
  </div>
</div>
 
<div class="row">
  <div class="medium-4 columns">
......................
阅读全部 | 孙景旭 贴于 2025年7月29日 21:52     hide bbsi
#include<bits/stdc++.h>
using namespace std;
int main(){
    int a;
    std::cin >> a;
    for (int i=1;i<a;i++) {
        for (int j= 0;j<a-i;j++) {
            cout<<" ";
        }
        for (int j=1;j<=i;j++) {
            cout<<'#';
        }
......................
阅读全部 | whywu 贴于 2025年7月29日 21:19     hide bbsi
#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);
......................
阅读全部 | wengzixi 贴于 2025年7月29日 18:28     hide bbsi
#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>
......................
阅读全部 | wengzixi 贴于 2025年7月29日 13:54     hide bbsi
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()
......................
阅读全部 | wengzixi 贴于 2025年7月28日 18:50     hide bbsi
1 2 3 4 5 6 7 8 9 10 下一页