code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
#include <stdio.h>
int main(int argc, char const *argv[])
{
printf("Hello World!\n");
return 0;
}
| 2301_76233439/shujujiegou | src/main.c | C | unknown | 108 |
/*
* Copyright (c) 2025 chicken8225
* All rights reserved.
*
* This file/program is protected by copyright law and international treaties.
* Unauthorized reproduction or distribution of this file/program, or any portion
* of it, may result in severe civil and criminal penalties.
*
* Date: 2025-07-21
*... | 2301_76283474/infInt | infInt.cpp | C++ | unknown | 7,331 |
/*
* Copyright (c) 2025 chicken8225
* All rights reserved.
*
* This file/program is protected by copyright law and international treaties.
* Unauthorized reproduction or distribution of this file/program, or any portion
* of it, may result in severe civil and criminal penalties.
*
* Date: 2025-07-21
*... | 2301_76283474/infInt | infInt.h | C++ | unknown | 3,358 |
#include <iostream>
#include "infInt.h"
using namespace std;
int main() {
infInt a, b;
cin >> a >> b;
cout << "a + b = " << a + b << endl;
cout << "a - b = " << a - b << endl;
cout << "a * b = " << a * b << endl;
cout << "a / b = " << a / b << endl;
cout << "b / a = " << b / ... | 2301_76283474/infInt | main.cpp | C++ | unknown | 590 |
#include <iostream>
#include "gobang.h"
using namespace std;
int main(int argc, char const *argv[])
{
char chess_board[ROW][COL] = {'\0'};
gobang_ui_init(chess_board);
show_chess_board(chess_board);
return 0;
}
| 2201_76097352/learning-records | ac1/五子棋/五子棋模板/01-棋盘初始化和展示函数.cpp | C++ | unknown | 238 |
#include <iostream>
#include "gobang.h"
using namespace std;
int main(int argc, char const *argv[])
{
/**
* flag 是一个游戏胜利判断条件
*/
int flag = 0;
/**
* 记录当前落子的总个数,同时可以利用 % 2 判断
* 落子的玩家是哪一个玩家
*/
int count = 0;
int row_index = 0;
int col_index = 0;
char player = '\0'... | 2201_76097352/learning-records | ac1/五子棋/五子棋模板/02-落子实现.cpp | C++ | unknown | 957 |
#include <iostream>
#include "gobang.h"
using namespace std;
int main(int argc, char const *argv[])
{
int ret = 0;
/**
* flag 是一个游戏胜利判断条件
*/
int flag = 0;
/**
* 记录当前落子的总个数,同时可以利用 % 2 判断
* 落子的玩家是哪一个玩家
*/
int count = 0;
int row_index = 0;
int col_index = 0;
c... | 2201_76097352/learning-records | ac1/五子棋/五子棋模板/03-获胜判断.cpp | C++ | unknown | 1,287 |
#include "gobang.h"
using namespace std;
void gobang_ui_init(char chess_board[][COL])
{
memset(chess_board, '+', ROW * COL);
}
void show_chess_board(char chess_board[][COL])
{
cout << " 1 2 3 4 5 6 7 8 9 A B C D E F" << endl;
for (int i = 0; i < ROW; i++)
{
if (i + 1 < 10)
{
... | 2201_76097352/learning-records | ac1/五子棋/五子棋模板/gobang.cpp | C++ | unknown | 5,120 |
#ifndef _GO_BANG_
#define _GO_BANG_
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#define ROW 15
#define COL 15
#define BLACK 'B'
#define WHITE 'O'
/**
* 棋盘初始化函数,提供当前函数的参数是个 char 类型二维数组,
* 数组的一维下标和二维下标由 ROW 和 COL 两个宏常量控制
*
* @param chess_board 用户提供的 char 类型二维数组
*/
void gobang_ui_i... | 2201_76097352/learning-records | ac1/五子棋/五子棋模板/gobang.h | C++ | unknown | 1,744 |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
// #define ROW 10
// #define COL 10
// // 打印用户界面
// void print_the_board(char chessboard[][COL])
// {
// for (int i = 0; i < ROW; i++)
// {
// for (int j = 0; j < COL; j++)
// {
// ... | 2201_76097352/learning-records | ac1/五子棋/五子棋练习/01_五子棋.cpp | C++ | unknown | 1,416 |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
using namespace std;
#define ROW 15
#define COL 15
// 打印用户界面
void print_the_board(char chessboard[][COL])
{
// 打印列号
cout << " ";
for (int i = 0; i < COL; i++)
{
cout << hex << i << " ";
... | 2201_76097352/learning-records | ac1/五子棋/五子棋练习/02_ 五子棋.cpp | C++ | unknown | 4,898 |
// 检查是否获胜
bool check_win(char chessboard[][COL])
{
// 检查行
for (int i = 0; i < ROW; i++)
{
for (int j = 0; j <= COL - 5; j++)
{
if (chessboard[i][j] != '0' &&
chessboard[i][j] == chessboard[i][j + 1] &&
chessboard[i][j] == chessboard[i][j + 2] &&
... | 2201_76097352/learning-records | ac1/五子棋/五子棋练习/03_shifouhuosdheng1.cpp | C++ | unknown | 1,995 |
#include <iostream>
#include "bobang.h"
using namespace std;
int main(int argc, char const *argv[])
{
int ret = 0;
/**
* flag 是一个游戏胜利判断条件
*/
int flag = 0;
/**
* 记录当前落子的总个数,同时可以利用 % 2 判断
* 落子的玩家是哪一个玩家
*/
int count = 0;
int row_index = 0;
int col_index = 0;
int ... | 2201_76097352/learning-records | ac1/五子棋/五子棋练习/04_获胜判断.cpp | C++ | unknown | 583 |
#ifndef _GO_BANG_
#define _GO_BANG_
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#define ROW 15
#define COL 15
#define BACK 'B'
#define WHITE '0'
/**
* 期盼初始化函数,提供当前函数的参数是个 char 类型二维数组,
* 数组的一维下标和二维下标由 ROW 和 COL 两个宏常量控制
*
* @param chess_board 用户提供的 char 类型二维数组
*/
void gobang_ui_i... | 2201_76097352/learning-records | ac1/五子棋/五子棋练习/gobang.h | C++ | unknown | 1,744 |
#include "game.h"
using namespace std;
void gobang_ui_init(char gobang_ui[][COL])
{
memset(gobang_ui, ' ', ROW * COL);
return;
}
void show_gobong_ui(char gobang_ui[][COL])
{
cout << " 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14" << endl;
for (int i = 0; i < ROW; i++)
{
if (i <= 9)
{
... | 2201_76097352/learning-records | ac1/五子棋/学生优秀模板/game.cpp | C++ | unknown | 1,995 |
#ifndef _GAME_
#define _GAME_
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ROW 15
#define COL 15
/**
* 此函数用于,用户界面初始化
*
* @param gobang_ui 用户提供 char 类型二维数组
*/
void gobang_ui_init(char gobang_ui[][COL]);
/**
* 此函数用于,展示用户界面
*
* @param gobang_ui 用户提供 char 类型二维数组
*/
void... | 2201_76097352/learning-records | ac1/五子棋/学生优秀模板/game.h | C++ | unknown | 1,309 |
#include <iostream>
#include "game.h"
using namespace std;
int main(int argc, char const *argv[])
{
char gobang_ui[ROW][COL];
char pawn = ' ';
int flag = 1;
int row = 0;
int col = 0;
gobang_ui_init(gobang_ui);
while (1)
{
show_gobong_ui(gobang_ui);
if (flag % 2 == 1)... | 2201_76097352/learning-records | ac1/五子棋/学生优秀模板/main.cpp | C++ | unknown | 1,436 |
#include <iostream>
using namespace std;
int max_subscript(int arr[], int capacity)
{
int index = 0;
for (int i = 1; i <= capacity; i++)
{
if (arr[i] > arr[index])
{
index = i;
}
}
return index;
}
int main(int argc, char const *argv[])
{
int arr[10] = {1, ... | 2201_76097352/learning-records | ac1/函数/01-函数.cpp | C++ | unknown | 461 |
#include <iostream>
using namespace std;
int temp = 3;
int values = 0;
int replace_arr(int arr[], int capacity);
int follow_up_function(int arr[], int capacity);
int output_function(int arr[], int capacity);
int main(int argc, char const *argv[])
{
int arr[10] = {1, 2, 3, 3, 5, 6, 7, 8, 8, 10};
replace_ar... | 2201_76097352/learning-records | ac1/函数/011_删除数组中所有指定元素.cpp | C++ | unknown | 904 |
#include <iostream>
using namespace std;
/*
int arr[10] = {1, 3, 5, 1, 3, 5, 1, 3, 5, 1};
要求
找出元素 1 在数组中出现的所有下标位置
{0, 3, 6, 9};
*/
int a = 0;
int temp = 10;
//校验
void wrong(int arr[], int capacity);
//决定数组的大小
int number(int arr[], int capacity);
//生成新数组
void subscript_function(int arr[], int capacity, ... | 2201_76097352/learning-records | ac1/函数/013_找出指定元素在数组中的所有下标位置,存储到另一个数组中.cpp | C++ | unknown | 1,757 |
#include <iostream>
using namespace std;
/*
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
用户指定开始下标为 2,结束下标为 6,
{5, 7, 9, 2}
【隐含一定的条件约束】
1. 截取数据,结束下标对应的元素在新数组中不存在,要头不要尾 [begin, end)
2. 用户指定的起始下标和终止下标必须在合法范围以内。
3. 需要根据用户提供的下标范围,创建一个新的数组,暂时使用 C99 以上版本能力,完成一个临时的数组
*/
void wrong(int arr[], int capacity, ... | 2201_76097352/learning-records | ac1/函数/014_用户指定起始下标和终止下标位置截取数组中的数据内容得到新数组.cpp | C++ | unknown | 1,530 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
for (int i = 0; i < 10 / 2; i++)
{
/*
int temp = arr[i];
arr[i] = arr[10 - 1 - i];
arr[10 - 1 - i] = arr[i];
*/
arr[i] += arr[10... | 2201_76097352/learning-records | ac1/函数/05-数组元素逆序.cpp | C++ | unknown | 527 |
# include <iostream>
using namespace std;
void inverse_order_of_elements (int arr[],int capacity);
int export_it (int arr[],int capacity);
int main(int argc, char const *argv[])
{
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
inverse_order_of_elements(arr,10);
export_it (arr,10);
return 0... | 2201_76097352/learning-records | ac1/函数/055-函数数组元素逆序.cpp | C++ | unknown | 687 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
int a,b,c;
c=999;
while(c)
{
cout <<"输入需要被替换掉的下标:"<< endl;
cin >> a;
if(a <= 9 && a >= 0)
{
cout <<"输入使用的新元素:"<< endl;
... | 2201_76097352/learning-records | ac1/函数/06- 使用指定元素,替换指定下标元素.cpp | C++ | unknown | 768 |
# include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
return 0;
}
| 2201_76097352/learning-records | ac1/函数/066- 函数使用指定元素,替换指定下标元素.cpp | C++ | unknown | 163 |
# include <iosstream>
using namespace std;
/*
数组案例
完成代码,给予任意 int 类型数据,找出目标 int 类型数组中最大值对应的下标位置,
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
数组中最大值下标位置为 9
*/
int main(int argc, char const*argv[])
{
/**
* 搜索最大值下标位置的数组
*/
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
/*
定义一个变量用于储存下... | 2201_76097352/learning-records | ac1/函数/a01-练习找出数组中最大值对应的下标位置.cpp | C++ | unknown | 1,386 |
#include <iostream>
using namespace std;
/*
数组案例
完成代码,给予任意 int 类型数据,找出目标 int 类型数组中最小值对应的下标位置
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
数组中最小值下标位置为
*/
int main(int argc, char const *argv[])
{
/**
* 搜索最小值下标位置的目标 int 类型数组,数组容量为 10
*/
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
/**
... | 2201_76097352/learning-records | ac1/函数/a02-找出数组中最小值下标位置.cpp | C++ | unknown | 1,028 |
# include <iostream>
using namespace std;
/*
数组案例
int arr[10] = {11, 3, 5, 7, 9, 2, 5, 6, 8, 10};
用户提供数据 5 对应下标位置 2
用户提供数据 20 反馈数据 -1 ,采用非法下标方式告知数据未找到
*/
int main(int argc, char const *argv[])
{
/**
* 搜索数据的目标 int 类型数组,容量为 10
*/
int arr[10] = {11, 3, 5, 7, 9, 2, 5, 6, 8, 10};
/**
* 搜... | 2201_76097352/learning-records | ac1/函数/a03-找出指定元素第一次出现的下标位置.cpp | C++ | unknown | 1,722 |
# include <iostream>
using namespace std;
/*
案例数组
int arr[10] = {11, 3, 5, 7, 9, 2, 5, 6, 8, 10};
用户数据提供 5 对应下标位置 6
用户数据提供 20 反馈数据 -1 ,采用非法下标方式告知数据未找到
*/
int main(int argc, char const *argv[])
{
/**
* 搜索数据的目标 int 类型数据, 容量为 10
*/
int arr[10] = {11, 3, 5, 7, 9, 2, 5, 6, 8, 5};
/**
* 目标搜索元... | 2201_76097352/learning-records | ac1/函数/a04-找出指定元素最后一次出现的下标位置.cpp | C++ | unknown | 1,306 |
#include <iostream>
using namespace std;
/*
int arr[10] = {1, 3, 5 7, 9, 2, 4, 6, 8, 10};
逆序之后的数据
arr ==> {10, 8, 6, 4, 2, 9, 7, 5, 3, 1};
数据交换位置的次数 = 数组容量 / 2
*/
int main(int argc, char const *argv[])
{
/**
* 逆序数组的目标 int 类型数组,数组容量为 10
*/
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
/*
... | 2201_76097352/learning-records | ac1/函数/a05-数组元素逆序.cpp | C++ | unknown | 1,011 |
#include <iostream>
using namespace std;
/**
* 在控制台展示用户提供的 int 类型数据
*
* @param arr 用户提供的 int 类型数组
* @param capacity 用户提供数组对应的容量
*/
void show_int_arry(int arr[], int capacity);
/*
int arr[10] = {1, 3, 5, 7, 9, 2, 4, 6, 8, 10};
用户指定替换元素的下标位置 5,替换使用的新元素 20,最红结果
1.需要知晓被替换掉的元素情况
2.数组的数据内容替换之后
... | 2201_76097352/learning-records | ac1/函数/a06-使用指定元素替换指定下标元素.cpp | C++ | unknown | 2,222 |
#include <iostream>
/*
引入目标头文件
*/
#include "test.h"
using namespace std;
int main(int argc, char const *argv[])
{
/*
可以直接调用在 test.h 中声明的函数
*/
int ret = my_add(10, 20);
cout << "ret : " << ret << endl;
int arr[5] = {1, 3, 5, 7, 9};
show_int_array(arr, 5);
return 0;
}
| 2201_76097352/learning-records | ac1/分组模板/01-main.cpp | C++ | unknown | 344 |
#include "test.h"
/*
引入必要的命名空间,当前 std 命名空间不可以在头文件中声明引入。
*/
using namespace std;
int my_add(int n1, int n2)
{
return n1 + n2;
}
void show_int_array(int arr[], int capacity)
{
if (0 == capacity)
{
cout << "[]" << endl;
}
cout << '[';
for (int i = 0; i < capacity - 1; i++)
{
... | 2201_76097352/learning-records | ac1/分组模板/test(1).cpp | C++ | unknown | 463 |
#ifndef _TEST_
#define _TEST_
/*
资源导入,当前代码实现有可能需要其他资源支持,需要导入
其他资源的对应头文件,例如 系统头文件,第三方头文件
*/
#include <iostream>
/**
* 自定义 add 函数,用户提供两个 int 类型数据,返回在是两个
* int 类型数据之和
*
* @param n1 用户提供的 int 类型数据
* @param n2 用户提供的 int 类型数据
* @return 两个 int 类型数据之和
*/
int my_add(int n1, int n2);
/**
* 在控制台展示用户提供的 int 类型数组
*
*... | 2201_76097352/learning-records | ac1/分组模板/test(2).h | C++ | unknown | 737 |
#include <iostream>
#include "minesweeper.h"
using namespace std;
int main(int argc, char const *argv[])
{
char mine_ui[ROW][COL] = {'\0'};
char mine_area[ROW][COL] = {'\0'};
mine_ui_init(mine_ui);
mine_area_init(mine_area);
show_mine_ui(mine_area);
int ret = 0;
int flag = 1;
int c... | 2201_76097352/learning-records | ac1/扫雷/扫雷范本/04_标记函数演示.cpp | C++ | unknown | 2,324 |
#include "minesweeper.h"
using namespace std;
void mine_ui_init(char mine_ui[][COL])
{
#if 0
// 【必会点】基本实现
for (int i = 0; i < ROW; i++)
{
for (int j = 0; j < COL; j++)
{
mine_ui[i][j] = '*';
}
}
#endif
/*
C 语言内存设置函数,需要提供给函数的参数是目标内存首地址,
每一个字节对应的数据内容,和总... | 2201_76097352/learning-records | ac1/扫雷/扫雷范本/minesweeper.cpp | C++ | unknown | 6,019 |
#ifndef _MINESWEEPER_
#define _MINESWEEPER_
#include <iostream>
/*
C 语言头文件三剑客
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/*
利用宏常量定义整个雷区大小
ROW 雷区行数
COL 雷区列数
MINE_COUNT 雷区地雷个数
*/
#define ROW 10
#define COL 10
#define MINE_COUNT 1
#define EXPLORE 1
#define MARK 2
#defin... | 2201_76097352/learning-records | ac1/扫雷/扫雷范本/minesweeper.h | C++ | unknown | 3,204 |
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
// 定义一个 3x3 的二维数组
int arr[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for (int i = -1; i < 3; ++i)
{
for (int j = -1; j < 3; ++j)
{
cout << arr[i][j] ;
}
}
... | 2201_76097352/learning-records | ac1/扫雷/练习/01_随机数.cpp | C++ | unknown | 353 |
#include <iostream>
using namespace std;
int main()
{
// 定义二维数组的行数和列数
const int rows = 9;
const int cols = 9;
// 声明并初始化用户二维数组
char arr0[rows][cols];
// 使用嵌套的 for 循环遍历数组
for (int i = 0; i < rows; ++i)
{
for (int j = 0; j < cols; ++j)
{
// 将数组元素赋值为星号
... | 2201_76097352/learning-records | ac1/扫雷/练习/02_扫雷.cpp | C++ | unknown | 1,570 |
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
// 定义雷区大小
const int rols = 10;
const int cols = 10;
// 定义雷的数量
const int NUM_MINES = 10;
/**
* @param gameBoard 界面数组界面
* @param mineBoard 地雷数组界面
*/
// 初始化数组
void initialise(char gameBoard[rols][cols], char mineBoard[rols][cols])
{
fo... | 2201_76097352/learning-records | ac1/扫雷/练习/03_扫雷.cpp | C++ | unknown | 4,521 |
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
// 定义雷区大小
const int rols = 10;
const int cols = 10;
// 定义雷的数量
const int NUM_MINES = 20;
/**
* @param gameBoard 界面数组界面
* @param mineBoard 地雷数组界面
*/
// 初始化数组
void initialise(char gameBoard[rols][cols], c... | 2201_76097352/learning-records | ac1/扫雷/练习/06.cpp | C++ | unknown | 4,015 |
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
// 定义雷区大小
const int rols = 10;
const int cols = 10;
// 定义雷的数量
const int NUM_MINES = 20;
/**
* @param gameBoard 界面数组界面
* @param mineBoard 地雷数组界面
*/
// 初始化数组
void initialise(char gameBoard[rols][cols], c... | 2201_76097352/learning-records | ac1/扫雷/练习/066 copy.cpp | C++ | unknown | 5,712 |
#include <iostream>
using namespace std;
/*
当前定义了一个结构体类型,数据类型名称为 Data 类型。
*/
struct Data
{
// 数据相关内容,【成员变量】Field
string key;
int value;
// 操作相关,针对于成员变量数据操作,或者针对于当前类型操作 【成员函数】Function
void show()
{
// 结构体中的成员函数可以直接使用结构体内部【成员变量】
cout << "Key : " << key << ", Value : " << value ... | 2201_76097352/learning-records | ac1/结构体/01-结构体基本案例.cpp | C++ | unknown | 1,037 |
#include <iostream>
using namespace std;
struct Data
{
string key;
int value;
void show()
{
cout << "key : " << key << ", value : "<< value << endl;
}
};
int main(int argc, char const *argv[])
{
Data data;
data.key = " 丝绒拿铁";
data.value = 10;
data.show();
Data data... | 2201_76097352/learning-records | ac1/结构体/011_结构体.cpp | C++ | unknown | 412 |
#include <iostream>
using namespace std;
struct Student
{
int id;
string name;
int age;
char gender;
void show()
{
cout << "ID : " << id
<< ", Name : " << name
<< ", Age : " << age
<< ", Gender : " << gender << endl;
}
};
/*
当前代码中结构体如果作为函数的参... | 2201_76097352/learning-records | ac1/结构体/02-结构体作为函数参数的案例.cpp | C++ | unknown | 1,001 |
#include <iostream>
using namespace std;
// 默认容量为 10
#define DEFAULT_CAPACITY 10
/*
将数组操作相关数据封装到一个结构体中
包括数组本身 array_data
数组对应容量 capacity
数组存储的有效元素个数 size
*/
struct My_Array
{
/**
* array_data 直接当做 int 类型数组使用。
*/
int *array_data;
/**
* 当前 array_data 数组的容量
*/
int capacity... | 2201_76097352/learning-records | ac1/结构体/03-自定义数组工具箱.cpp | C++ | unknown | 2,545 |
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
struct A
{
string name;
int age;
string hobby;
int arry[10];
};
int main(int argc, char const *argv[])
{
A a;
a.name = "abc";
a.age = 1;
a.hobby = "qwer";
int new_arry[] = {1, 2, 3, 4, 5, 6, 0, 0 ,0... | 2201_76097352/learning-records | ac2/作业/03_结构体练习.cpp | C++ | unknown | 557 |
#include <iostream>
#include "my_array.h"
using namespace std;
int main(int argc, char const *argv[])
{
My_Array my_array;
My_Array ma;
// my_array 调用初始化操作
my_array.init_my_array();
my_array.add_element(1);
my_array.add_element(3);
my_array.add_element(1);
my_array.add_element(7);
... | 2201_76097352/learning-records | ac2/作业/作业1/04-多文件效果.cpp | C++ | unknown | 2,680 |
#include "my_array.h"
using namespace std;
/*
My_Array::init_my_array
My_Array:: 作用域运算符, 俗称 四饼
明确告知编译器,当前实现的函数是 My_Array 结构体中的
成员函数。
*/
void My_Array::init_my_array()
{
/*
申请存储 int 类型数据的数组空间
*/
array_data = new int[DEFAULT_CAPACITY];
memset(array_data, 0, DEFAULT_CAPACITY);
/*
... | 2201_76097352/learning-records | ac2/作业/作业1/my_array.cpp | C++ | unknown | 9,198 |
#ifndef _MY_ARRAY_
#define _MY_ARRAY_
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
// 默认容量为 10
#define DEFAULT_CAPACITY 10
/*
将数组操作相关数据封装到一个结构体中
包括数组本身 array_data
数组对应容量 capacity
数组存储的有效元素个数 size
*/
struct My_Array
{
/**
* array_data 直接当做 int 类型数组使用。
*/
in... | 2201_76097352/learning-records | ac2/作业/作业1/my_array.h | C++ | unknown | 7,478 |
init_my_array()
add_element(int ele)
min_value()
max_value()
avg_value()
show()
find(int value)
rfind(int value)
/**
* 在当前底层数组中,添加指定元素到目标指定下标
*
* @param index 指定添加数据的下标位置。
* @param ele 指定添加的元素
*/
add_element(int index, int ele)
/**
... | 2201_76097352/learning-records | ac2/作业/作业1/临时存储.cpp | C++ | unknown | 4,975 |
#include "homework.h"
#include <iostream>
using namespace std;
void My_Array::init_my_array()
{
/*
申请存储 int 类型数据的数组空间
*/
array_data = new int[DEFAULT_CAPACITY];
memset(array_data, 0, DEFAULT_CAPACITY);
/*
capacity 对应底层数组的容量,赋值为默认容量 DEFAULT_CAPACITY
*/
capacity = DEFAULT_CAPACITY;... | 2201_76097352/learning-records | ac2/作业/作业2/homework.cpp | C++ | unknown | 7,267 |
#ifndef _HOMEWORK_
#define _HOMEWORK_
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
// 默认容量为 10
#define DEFAULT_CAPACITY 10
/*
将数组操作相关数据封装到一个结构体中
包括数组本身 array_data
数组对应容量 capacity
数组存储的有效元素个数 size
*/
struct My_Array
{
/**
* array_data 直接当做 int 类型数组使用。
*/
in... | 2201_76097352/learning-records | ac2/作业/作业2/homework.h | C++ | unknown | 7,452 |
#include "homework.h"
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
My_Array my_array;
// my_array 调用初始化操作
my_array.init_my_array();
my_array.add_element(11);
my_array.add_element(3);
my_array.add_element(5);
my_array.add_element(777);
my_array.a... | 2201_76097352/learning-records | ac2/作业/作业2/main_homework.cpp | C++ | unknown | 2,929 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 0;
int b = 0;
cout << "请输入两个数" <<endl;
cin >> a >> b ;
if(a < b)
{
cout << "您输入两个数,其中最大的是:" << b <<endl;
}
else
cout << "您输入两个数,其中最大的是:" << a <<endl;
return 0;
}
| 2201_76097352/learning-records | ac2/分支循环练习题/01_输入两个整数,输出较大的数(要求用if-else实现).cpp | C++ | unknown | 376 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 0;
// int b = 0;
cout << "请输入一个数" <<endl;
cin >> a ;
if(a < 0)
{
cout << "您输入的数小于零" << a <<endl;
}
else if(a == 0)
{
cout << "您输入的数为“ 0 "<< a <<endl;
}
else
co... | 2201_76097352/learning-records | ac2/分支循环练习题/02_输入一个整数,判断是正数、负数还是零.cpp | C++ | unknown | 425 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
cout << "输入一个年份"<<endl;
int a = 0;
cin >> a;
if(a % 4 == 0 && a % 100 != 0 || a % 400 == 0)
{
cout << "你输入的年份为闰年"<<endl;
}
else{
cout << "您输入的年份不是闰年"<<endl;
}
return 0;
}
| 2201_76097352/learning-records | ac2/分支循环练习题/04_输入年份,判断是否为闰年(闰年条件:能被4整除但不能被100整除,或能被400整除.cpp | C++ | unknown | 356 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
// int capaciyt = 3;
int temp = 0;
int arr[3] = {0};
for (int i = 0; i < 3; i++)
{
cout << " 请输入第" << i+1 <<"个数"<<endl;
cin >> arr[i];
}
for (int i = 0; i < 3; i++)
{
cou... | 2201_76097352/learning-records | ac2/分支循环练习题/05_输入三个数,按从小到大顺序输出.cpp | C++ | unknown | 743 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
char a = 'a';
cout << "请输入一个字符" <<endl;
cin >> a;
if(a >= 49 && a <= 57)
{
cout << "您输入的字符为数字"<<endl;
}
else if(a >= 65 && a <= 90)
{
cout << "您输入的字符为大写字母"<<endl;
}
else if(a >= ... | 2201_76097352/learning-records | ac2/分支循环练习题/06_输入字符,判断是字母、数字还是其他字符.cpp | C++ | unknown | 540 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int a[3] = {0};
for (int i = 0; i < 3; i++)
{
cout <<"请输三角形的第 "<< i + 1 << "边长"<<endl;
cin >> a[i];
}
cout <<"输入的三角形的边长分变为 "<<endl;
for (int i = 0; i < 3; i++)
{
cout << a[i] <<" ";... | 2201_76097352/learning-records | ac2/分支循环练习题/09_输入三角形的三边长,判断是否能构成三角形,并判断类型(等边、等腰、直角、普通).cpp | C++ | unknown | 1,384 |
#include <iostream>
using namespace std;
int main() {
double weight; // 包裹重量
double firstWeightRate = 10.0; // 首重费率(10元/kg)
double additionalWeightRate = 5.0; // 续重费率(5元/kg)
double maxCost = 50.0; // 最大费用(50元)
// 输入包裹重量
cout << "请输入包裹的重量(kg):";
cin >> weight;
// 计算费用
double cost =... | 2201_76097352/learning-records | ac2/分支循环练习题/10_kg(总费用不超过50元).cpp | C++ | unknown | 933 |
#include <iostream>
using namespace std;
int blend = 0;//初始化存储元素
int main(int argc, char const *argv[])
{
for (int i = 1; i <= 100; i++)
{
blend = i + blend;
}
cout << "1 -100 的和为:" << blend<<endl;
return 0;
}
| 2201_76097352/learning-records | ac2/分支循环练习题/11计算1+2+3+...+100的和(使用for循环).cpp | C++ | unknown | 266 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int number = 0;//初始化元素
int new_number = 0;
cout <<"用户输入要求阶乘的数" <<endl;
cin >> number;//用户定义元素
new_number = number;
if(number == 0)
{
cout << "您输入数的阶乘为:1" <<endl;
return 0;
}
for (int i ... | 2201_76097352/learning-records | ac2/分支循环练习题/12_输入正整数n,计算n!(阶乘).cpp | C++ | unknown | 542 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int number = 0;//初始化数据
cin >> number;
if(number < 1)
{
cout << "您输入的数字违规" <<endl;
}
else if(2 == number ||3 == number)
{
cout <<"您输入的数是素数,您输入的数为" << number <<endl;
}
else if(number % 2 ... | 2201_76097352/learning-records | ac2/分支循环练习题/13_输出100以内的所有素数(质数).cpp | C++ | unknown | 639 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
for (int i = 1; i < 10; i++)
{
for (int j = 1; j < 10; j++)
{
cout << i * j << " ";
}
cout << endl;
}
return 0;
}
| 2201_76097352/learning-records | ac2/分支循环练习题/14_打印九九乘法表(要求对齐格式).cpp | C++ | unknown | 264 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int number = 0;
int a = 0;
cout << "用户输入整数" <<endl;
cin >> number;
int new_number = 0;
while(1)
{
new_number = (number % 10);
number = number / 10;
cout << new_number ;
if(numb... | 2201_76097352/learning-records | ac2/分支循环练习题/15_输入一个整数,输出它的逆序数(如输入123,输出321).cpp | C++ | unknown | 480 |
#include <iostream>
using namespace std;
/**
* 找出1000以内的所有完数(完数:等于其因子之和,如6=1+2+3)
*/
int main(int argc, char const *argv[])
{
int num = 0;
for (int i = 1; i < 1000; i++)
{
for (int j = 1; j < i; j++)
{
if (i % j == 0 )
{
num = num + j;
... | 2201_76097352/learning-records | ac2/分支循环练习题/16_找出1000以内的所有完数(完数:等于其因子之和,如6=1+2+3).cpp | C++ | unknown | 534 |
#include <iostream>
using namespace std;
/**
* 斐波那契数列:输出前20项(1,1,2,3,5,8...)
*/
int main(int argc, char const *argv[])
{
int arry[20] = {1,1,2};
for (int i = 2; i < 20; i++)
{
arry[i] = arry[i - 1] + arry[i - 2];
}
for (int i = 0; i < 20; i++)
{
cout << arry[i] <<" ";
}
... | 2201_76097352/learning-records | ac2/分支循环练习题/17_斐波那契数列:输出前20项(1,1,2,3,5,8...).cpp | C++ | unknown | 366 |
#include <iostream>
using namespace std;
/**
* 输入一行字符,统计其中字母、空格、数字和其他字符的个数
*/
int main(int argc, char const *argv[])
{
char import = ' ';
char a = ' ';
cout << "请输入"<<endl;
int letter = 0;
int blank = 0;
int figure = 0;
int characters = 0;
while(1)
{
cin >> import;
... | 2201_76097352/learning-records | ac2/分支循环练习题/18_输入一行字符,统计其中字母、空格、数字和其他字符的个数.cpp | C++ | unknown | 1,079 |
#include <iostream>
using namespace std;
/**
* @brief 获取数字的某一位(从低位开始)
* @param num 目标数字
* @param pos 位置
* @return 对应位置的数字
*/
int getDigitFromLow(int num, int pos)
{
int divisor = 1;
for (int i = 0; i < pos; ++i)
{
divisor *= 10;
}
return (num / divisor) % 10;
}
/**
* @brief 获取数字的某... | 2201_76097352/learning-records | ac2/分支循环练习题/20_回文数.cpp | C++ | unknown | 1,665 |
#include <iostream>
#include <random>
using namespace std;
int main(int argc, char const *argv[])
{
// 创建一个随机数引擎
std::random_device rd; // 用于获取随机种子
std::mt19937 gen(rd()); // 使用Mersenne Twister算法作为随机数生成器
// 定义一个分布器,生成范围在1到100之间的整数
std::uniform_int_distribution<> dis(1, 100);
// 生成随机数
... | 2201_76097352/learning-records | ac2/分支循环练习题/21_随机数生成.cpp | C++ | unknown | 882 |
#include <iostream>
using namespace std;
/**
* int arr[10] = {1, 21, 5, 7, 9, 21, 4, 6, 8, 0};
* 当前数组中最大值下标为 1
* 需要得到的数据是最大值对应的下标位置,如果代码中有多个最大值,
* 对应的结果为第一个最大值数据
*/
/**
* @param arr 已知数组
* @param num 用来储存最大值的下标位置
* @return 返回最大值下标的值 num
*/
int output_the_subscript (int arr[], int num);
void show_arr... | 2201_76097352/learning-records | ac2/数组练习题/01_找出数组中最大值下标位置.cpp | C++ | unknown | 1,102 |
#include <iostream>
using namespace std;
/**
* int arr[10] = {1, 21, 5, 7, 9, 21, 4, 6, 8, 0};
* 当前数组中最大值下标为 1
* 需要得到的数据是最大值对应的下标位置,如果代码中有多个最大值,
* 对应的结果为第一个最大值数据
*/
/**
* @param arr 已知数组
* @param num 用来储存最小值的下标位置
* @return 返回最小值下标的值 num
*/
int output_the_subscript (int arr[], int num);
void show_arr... | 2201_76097352/learning-records | ac2/数组练习题/02_找出数组中最小值下标位置.cpp | C++ | unknown | 1,102 |
#include <iostream>
using namespace std;
/**
* int arr[10] = {1, 3, 5, 7, 1, 3, 5, 7, 1, 3};
* // 找出目标元素 5 第一次出现的下标位置,对应下标位置 2
* // 找出目标元素 15 第一处出现的下标位置,当前用户指定数据不存在,返回 -1
*/
/**
* @param arr 用户提供数组
* @param num 指定数字第一次出现小标位置
* @param number 指定数字
*
* @return 返回对应下标,若指定数字在数组中不存在,则返回 -1
*/
int output_the_su... | 2201_76097352/learning-records | ac2/数组练习题/03_找出指定元素在数组中第一次出现的下标位置.cpp | C++ | unknown | 1,220 |
#include <iostream>
using namespace std;
/**
* int arr[10] = {1, 3, 5, 7, 1, 3, 5, 7, 1, 3};
* // 找出目标元素 5 最后一次出现的下标位置,对应下标位置 6
* // 找出目标元素 10 最后一处出现的下标位置,当前用户指定数据不存在,返回 -1
*/
/**
* @param arr 用户提供数组
* @param num 指定数字最后一次出现小标位置
* @param number 指定数字
*
* @return 返回对应下标,若指定数字在数组中不存在,则返回 -1
*/
int output_the... | 2201_76097352/learning-records | ac2/数组练习题/04_找出指定元素在数组中最后一次出现的下标位置.cpp | C++ | unknown | 1,233 |
package com.neusoft.Shixun;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.in... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/MyBatisPlusConfig.java | Java | unknown | 669 |
package com.neusoft.Shixun;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
@SpringBootApplication
@MapperScan("com.neusoft.Shixun.dao")
@... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/ShixunApplication.java | Java | unknown | 472 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.dto.RoomDto;
import com.neusoft.Shixun.po.Bed;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.BedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
impo... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/BedController.java | Java | unknown | 2,400 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.dto.BedUsageDetailDto;
import com.neusoft.Shixun.po.BedUsage;
import com.neusoft.Shixun.po.Client;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.BedUsageService;
import com.neusoft.Shixun.service.ClientService;
import org.s... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/BedUsageController.java | Java | unknown | 2,548 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CareItem;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.CareItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
import jav... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/CareItemController.java | Java | unknown | 1,856 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CareLevel;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.CareLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestCo... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/CareLevelController.java | Java | unknown | 1,797 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CareRecord;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.CareRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@Rest... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/CareRecordController.java | Java | unknown | 2,136 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CaretakerClient;
import com.neusoft.Shixun.po.Client;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.CaretakerClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bi... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/CaretakerClientController.java | Java | unknown | 2,156 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.service.impl.ChatServiceImpl;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.prompt.Prompt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import or... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/ChatClientController.java | Java | unknown | 2,607 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.dto.CheckoutRequestWithClientDto;
import com.neusoft.Shixun.po.CheckoutRequest;
import com.neusoft.Shixun.po.OutgoingRequest;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.CheckoutRequestService;
import org.springframework.... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/CheckoutRequestController.java | Java | unknown | 2,733 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.dto.ClientCareItemDto;
import com.neusoft.Shixun.po.CareItem;
import com.neusoft.Shixun.po.ClientCareItem;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.ClientCareItemService;
import org.springframework.beans.factory.annota... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/ClientCareItemController.java | Java | unknown | 2,832 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CareLevel;
import com.neusoft.Shixun.po.ClientCareSetting;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.ClientCareSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/ClientCareSettingController.java | Java | unknown | 2,068 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CaretakerClient;
import com.neusoft.Shixun.po.Client;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.CaretakerClientService;
import com.neusoft.Shixun.service.ClientService;
import org.springframework.beans.factory.annota... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/ClientController.java | Java | unknown | 2,661 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.ClientMealPreferences;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.ClientMealPreferencesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import ... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/ClientMealPreferencesController.java | Java | unknown | 1,817 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.CareItem;
import com.neusoft.Shixun.po.LevelItem;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.LevelItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotat... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/LevelItemController.java | Java | unknown | 2,364 |
package com.neusoft.Shixun.controller;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.neusoft.Shixun.po.MealPlan;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.MealPlanService;
import org.springframework.beans.fac... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/MealPlanController.java | Java | unknown | 2,890 |
package com.neusoft.Shixun.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.neusoft.Shixun.po.Message;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/MessageController.java | Java | unknown | 1,545 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.dto.OutgoingRequestWithClientDto;
import com.neusoft.Shixun.po.Bed;
import com.neusoft.Shixun.po.BedUsage;
import com.neusoft.Shixun.po.OutgoingRequest;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.BedService;
import com.n... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/OutgoingRequestController.java | Java | unknown | 2,831 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.redisdao.RedisDao;
import com.neusoft.Shixun.service.impl.RedisServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.conc... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/RedisController.java | Java | unknown | 1,096 |
package com.neusoft.Shixun.controller;
import com.neusoft.Shixun.po.User;
import com.neusoft.Shixun.po.ResponseBean;
import com.neusoft.Shixun.service.RedisService;
import com.neusoft.Shixun.service.UserService;
import com.neusoft.Shixun.util.JwtUtil;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/controller/UserController.java | Java | unknown | 6,912 |
package com.neusoft.Shixun.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.Shixun.dto.RoomDto;
import com.neusoft.Shixun.po.Bed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface BedDao extends Ba... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/dao/BedDao.java | Java | unknown | 655 |
package com.neusoft.Shixun.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.Shixun.dto.BedUsageDetailDto;
import com.neusoft.Shixun.po.BedUsage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import ... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/dao/BedUsageDao.java | Java | unknown | 1,643 |
package com.neusoft.Shixun.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.Shixun.po.CareItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface CareIte... | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/dao/CareItemDao.java | Java | unknown | 1,111 |
package com.neusoft.Shixun.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.Shixun.po.CareLevel;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CareLevelDao extends BaseMapper<CareLevel> {
// 在这里可以定义一些自定义的SQL操作(如果有需要)
} | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/dao/CareLevelDao.java | Java | unknown | 324 |
package com.neusoft.Shixun.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neusoft.Shixun.po.CareRecord;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CareRecordDao extends BaseMapper<CareRecord> {
// 在这里可以定义一些自定义的SQL操作(如果有需要)
} | 2301_76230122/shixun_houduan | Shixun/src/main/java/com/neusoft/Shixun/dao/CareRecordDao.java | Java | unknown | 327 |