摘要:
#include <stdio.h> #include <stdlib.h> #define N 6 #define V 100 typedef struct box // 使用 typedef 来为用户自定义的数据类型box取一个新的名字BOX { int no; int size; struct
阅读全文
posted @ 2020-10-03 13:26
周文豪
阅读(740)
推荐(0)
摘要:
通过指针,可以简化一些 C 编程任务的执行,还有一些任务,如动态内存分配,没有指针是无法执行的。 变量的内存地址:&+变量名称,如&var 每一个变量都有一个内存位置,每一个内存位置都定义了可使用连字号(&)运算符访问的地址,它表示了在内存中的一个地址。变量 内存地址(&普通变量) #include
阅读全文
posted @ 2020-10-02 21:06
周文豪
阅读(153)
推荐(0)
摘要:
我们把整数A由规模n分为n1和n2,把整数B由规模m分为m1和m2,如下图: 则A分为n1位的A1和n2位的A1,B分为m1位的B1和m2位的B2,如下式所示: 以此类推,我们可以把A1、A2、B1、B2继续划分,直至最小单位。(这里在编程时需要用递归来实现) 上面讲的很清楚了,那么A和B的相乘就可
阅读全文
posted @ 2020-09-30 10:34
周文豪
阅读(1246)
推荐(0)
摘要:
官方代码: <template> <div> <el-autocomplete v-model="state" :fetch-suggestions="querySearchAsync" placeholder="请输入内容" @select="handleSelect" ></el-autocom
阅读全文
posted @ 2020-09-29 11:45
周文豪
阅读(5351)
推荐(0)
posted @ 2020-09-28 18:42
周文豪
阅读(153)
推荐(0)
摘要:
MyBatis二级缓存使用: 官方建议在service使用缓存,但是你也可以直接在mapper层缓存,这里的二级缓存就是直接在Mapper层进行缓存操作 Mybatis的二级缓存实现也十分简单,只要在springboot的配置文件打开二级缓存,即:mybatis-plus.configuration
阅读全文
posted @ 2020-09-28 18:39
周文豪
阅读(6807)
推荐(0)
摘要:
根据条件导出表格: 前端 <el-form-item label=""> <el-button type="warning" icon="el-icon-lightning" @click="exportExcel">导出</el-button></el-form-item> //导出数据expor
阅读全文
posted @ 2020-09-28 18:10
周文豪
阅读(602)
推荐(0)
摘要:
前端 <el-button type="success" icon="el-icon-download" @click="downloadTemplate">下载模板</el-button> //下载模板downloadTemplate(){ const fileName = '药品清单-模板.xl
阅读全文
posted @ 2020-09-28 17:34
周文豪
阅读(254)
推荐(0)
摘要:
前端 <div style="margin-bottom: 10px"> <el-button :loading="importLoading" type="primary" icon="el-icon-upload" @click="handleImport">导入</el-button> <el
阅读全文
posted @ 2020-09-27 19:55
周文豪
阅读(163)
推荐(0)
摘要:
前言:这篇文件下载的后台代码太繁琐,建议参考https://www.cnblogs.com/zwh0910/p/13745947.html 前端: <el-button type="primary" icon="el-icon-download" @click="downloadTemplate('
阅读全文
posted @ 2020-09-27 19:46
周文豪
阅读(2423)
推荐(0)