09 2023 档案
摘要:今天一直再搞数据库,下载了半天,才知道Java连接数据库和数据库管理软件不一样。下载错了 代码还是错题本的问题。虽然不用输出文件,但是还是要保存错题。 在文本文档中做题,想了一个思路,具体没有实现。我的思路只能每行做一个题目 在文本文文档中,读取一行,等号左边的录入字符串,计算结果。等号右边录入答案
阅读全文
摘要:将四则运算的代码重新写了一遍 考虑到后期连接数据库,没有考虑错题本 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(Sys
阅读全文
摘要:用栈实现回文字符串 #include<iostream> #include<string> using namespace std; typedef struct { char data[101]; int top; }SqStack; void InitStack(SqStack &S) { S.
阅读全文
摘要:动手动脑1 随机生成1000个随机数 public class Main { static int x=1; public static void f(int count) { for(int i=0;i<count;i++) { x=(16807 * x + 1) % Integer.MAX_VA
阅读全文
摘要:将数据结构学了一下 回文数用栈和双向链表的方式都实现了一下 #include<iostream> using namespace std; typedef struct { char data[101]; int top; }SqStack; void InitStack(SqStack &S) {
阅读全文
摘要:突然想到html可以和上次的舔狗代码结合,做一个专属网站 初高中在抖音上面看的表白代码好像就是html形式,当时还要花钱买 等我研究研究
阅读全文
摘要:下载VS code 学习javaweb 收拾一下心情,删除一些游戏 <!-- 文档类型为HTML --> <!DOCTYPE html> <html lang="en"> <head> <!-- 设置字符集为UTF-8 --> <meta charset="UTF-8"> <!-- 设置浏览器的兼容
阅读全文
摘要:#include<iostream> #include<easyx.h> #include<ctime> #include <windows.h> #pragma comment(lib ,"winmm.lib") #include<mmsystem.h> using namespace std;
阅读全文
摘要:#include <iostream> #include <random> #include <time.h> using namespace std; double f1(double a) { return a / 30; } int main() { clock_t start, finish
阅读全文
摘要:package 拉倒吧;import java.util.Scanner; public class WarehouseInformation { String itemno;//编号 String itemname;//商品名称 String suppliername;//供货商名称 String
阅读全文
摘要:1、Addition.java // An addition program import javax.swing.JOptionPane; // import class JOptionPane public class Addition { public static void main( St
阅读全文
摘要:#include <iostream>using namespace std; struct Node{ int data; Node* next;}; struct List{ Node* head; int length;}; int main() { List L; L.head = null
阅读全文
摘要:#include<iostream>using namespace std; long long f(long long a){ long long day=0; if(a<=5) { return 1; } else { a=a-5; day+=1; while(1) { day+=a/4; if
阅读全文
摘要:一开始 肯定用双 for 循环 class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { vector<int> result; for(int i=0;i<nums.size();i++) { for(
阅读全文
摘要:四则运算题目 课堂上写的代码 #include<iostream>#include<random>using namespace std;int main(){ random_device rd; // 用于获得随机种子 mt19937 gen1(rd()); // 以随机种子初始化随机数生成器 m
阅读全文