- 博客(9)
- 收藏
- 关注
原创 记录一个jacoco坑爹的问题,跑单元测试覆盖率失败,报错:malformed,就这一个单词
target目录的classes里面是不是有一些非标文件,比如我的。jacoco就会报错。
2024-07-16 19:43:40
511
原创 在一串数字中插入运算符号使等式成立,如12345678中插入“+”“-”“*”三种运算符号使得等于2004
#include<iostream> #include<math.h> using namespace std; int main() { int b[11]={1,2,3,4,5,6,7,8,9,9,9}; //取x,y,z三个数用来定位符号在12345678中的位置 for(int x=1;x<8;x++){ for(int y=x+1;y<8;y++){ for(int z=y+1;z<8;z++){ //将三个运算符号用0代替和123456
2020-07-14 17:55:28
4271
原创 【Vue】element-UI日期选择器value-format和范围选择冲突bug解决
本来想将时间选择器的时间format成8位字符串型,如20200307,但是format之后范围选择功能不能正常使用,最后使用moment插件读取八位字符串时间得以解决 初始源代码参考至https://www.cnblogs.com/ceceliahappycoding/p/10862991.html 初始源代码参考至本本链接 过程中发现value-format="2020-03-07"则可以正常...
2020-03-07 02:34:46
3595
转载 虚函数
#include<iostream> using namespace std; class Base1 { public: virtual void display() const; }; void Base1::display() const{ cout << "Base1::display()" << endl; } class Base2:pu...
2019-02-27 16:36:20
169
转载 个人银行账户管理程序(储蓄和信用卡)
//date.h #ifndef __DATE_H__ #define __DATE_H__ class Date { private: int year; int month; int day; int totalDays; public: Date(int year, int month, int day); int getYear()const { return year; ...
2019-02-22 23:22:16
524
转载 全元素高斯消去法
//Matrix.h #ifndef __MATRIX_H__ #define __MATRIX_H__ class Matrix { public: Matrix(int size = 2); ~Matrix(); void setMatrix(const double *values);//矩阵赋初值 void printMatrix()const;//显示矩阵 ...
2019-02-21 21:24:49
300
原创 string类应用
#include<string> #include<iostream> using namespace std; inline void test(const char *title,bool value){ cout<<title<<" returns "<<(value?"true":"false")&
2019-02-17 14:36:54
229
原创 函数指针实例
#include<iostream> using namespace std; void printStuff(float){ cout<<"This is the print stuff function."<<endl; } void printMessage(float data){ cout<<"This date to ...
2019-02-16 19:29:43
254
原创 个人银行账户管理程序(文件分开)
分成三个文件 //account.h #ifndef __ACCOUNT_H__ #define __ACCOUNT_H__ class SavingsAccount { private: int id; double balance; //余额 double rate; //利率 int lastDate; //上次变更的日期 double accumulati...
2019-02-08 23:37:11
948
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅