• 2024-08-02在服务器上使用Dockerfile创建springboot项目的镜像和踩坑避雷
    1.准备个文件夹这是我的路径/usr/local/springboot/docker-daka/docker_files2.将jar包上传springboot项目打包——maven的package这是整个项目打包的模式,也可以分离依赖、配置和程序进行打包,详情看我这篇文章:springboot依赖配置程序分离打包成jar包这里我以不
  • 2023-06-20daka:p java
    终于搞定eclipse了用eclipse编译输出“helloworld!” 感觉比之前方便了许多,终于不用cmd了学习了一下Java的基础语法,感觉在数据类型上与C并没有太大的差异。 
  • 2023-06-19daka :p java day 1!
    书写helloworld!publicclasshelloworld{publicstaticvoidmain(String[]arges){System.out.println("helloworld!");}}  
  • 2023-05-26daka
      #include<bits/stdc++.h>usingnamespacestd;intmain(){doublesum=0;inti;for(i=1;i<=64;i++){sum=sum+po(2,i-1);}cout<<sum;}  #include<bits/stdc++.h>usingnamespace
  • 2023-05-23daka
    题目描述:定义一个时间类,小时和分钟是其两个私有成员数据。输入一个起始时间和一个结束时间(起始时间早于结束时间),通过运算符重载-(减号),计算这两个时间相隔多少分钟。说明:这两个时间在同一天之内,且采用24小时计时分式,即从00:00-23:59。输入格式:测试输入包含若干测试用例,每
  • 2023-05-20daka
    #include<bits/stdc++.h>usingnamespacestd;classDog{public:intage;doubleweight;Dog(inta,doubleb):age(a),weight(b){}Dog(){}};intmain(){Dogdog1(10,5);Dogdog2;/*ofstreamout
  • 2023-05-19daka
    #include<bits/stdc++.h>usingnamespacestd;classDog{public:intage;doubleweight;Dog(inta,doubleb):age(a),weight(b){}Dog(){}};intmain(){Dogdog1(10,5);Dogdog2;ofstreamout1(
  • 2023-05-18daka
    #include<iostream>#include<string>#include<fstream>#include<sstream>#include<bits/stdc++.h>usingnamespacestd;structServerInfo{char_ip[32];int_port;};structConfigManager{public:
  • 2023-05-13daka :p
    6-2数组排序输出(函数模板)分数 10全屏浏览题目切换布局作者 何振峰单位 福州大学对于输入的每一批数,按从小到大排序后输出。一行输入为一批数,第一个输入为数据类型(1表示整数,2表示字符型数,3表示有一位小数的浮点数,4表示字符串,0表示输入结束),第二个
  • 2023-05-11daka :p
     2.设计思路①依次列举出所有0~9的两位相同数字②在第一步的前提下依次列举出0~9的两位相同数字③将第一第二步中的四个数字组成的数进行开根,判断结果是否为整数后输出结果 #include<bits/stdc++.h>usingnamespacestd;intmain(){inti,j,k,temp;for
  • 2023-05-09daka :p
      #include<bits/stdc++.h>#defineN10usingnamespacestd;main(){inti,j,a[N],t,count=0;printf("ÇëΪÊý×éÔªËظ³³õÖµ£º\n");for(i=0;i<N;i++)scanf("%d",&a[i]);for(i=1;i<=N-1;i++)
  • 2023-05-08daka :p
    #incldude<bits/stdc++.h>usinggnamespacestd;intmain(){inti,j,x,flag=0;for(i=23;flag==0;i++){for(j=1,x=i;j<=4&&x>=11;j++){if((x+1)%(j+1)==0)x-=
  • 2023-05-07daka :p
     #include<bits/stdc++.h>usingnamespacestd;intmain(){intm,n,number=0;for(m=0;m<=3;m++){for(n=0;n<=3;n++){if(8-m-n<=6)number++;}}cout<<
  • 2023-05-05daka :p
    复数类Complex有两个数据成员:a和b,分别代表复数的实部和虚部,并有若干构造函数和一个重载-(减号,用于计算两个复数的距离)的成员函数。要求设计一个函数模板template<classT>doubledist(Ta,Tb)对int,float,Complex或者其他类型的数据,返回两个数据的间距。以上类名和函数模
  • 2023-05-04daka :p
     #include<bits/stdc++.h>usingnamespacestd;voidprint(ints[]);intjudge(intc[]);intj=0;intmain(){ intsweet[10]={10,2,8,22,16,4,10,6,14,20}; inti,t[10],l; printf("child12345678910\n"); printf