自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

轻云&流风

海纳百川

  • 博客(8)
  • 收藏
  • 关注

原创 word三线表最后一行加粗方式

具体步骤:第一步:在"段落"中的"边框"里将三线表制作好,设置三条线的宽度。第二步:在word里面如果显示三线表最后一条线不是你想要的加粗效果,则利用表格右下角的放大缩小图标(即下图红色椭圆圈里的一个小方格),进行适当调整就会出现最后一条线加粗时候的表格大小。第三步:如果改变表格里面的文字或数字,最后一条线又会显示为加粗状态,则执行第二步。...

2021-05-01 10:11:27 15833 2

原创 请按一定长度拆分字符串。

#include <string>#include <iostream>#include <iomanip>using namespace std;// 将字符串按长度8进行拆分void Divide_8(){ int input_num = 0; // 输入字符串的个数 while (cin >> input_num) { while (input_num--) { string str; cin >>

2020-06-28 10:28:00 634

原创 求CCPR中介电常数。

#include <stdio.h>#include <iostream>#include <complex>using namespace std;// CCPR的相对介电常数的计算complex<double> Permittivity(){ complex<double> rel_permt; // 相对介电常数 complex<double> J_angular_f(0, 6e14); // 角频率

2020-06-21 21:02:47 175

原创 空汽水瓶兑换问题(4个空瓶的兑换一瓶)

#include <stdio.h>#include "iostream"using namespace std;// 用4个空汽水瓶兑换一瓶汽水int Drinks(int x){ int count = 0; int a; int b; if (x <= 2) { return 0; } if (x == 3) { count++; return count; } else if (x >= 4) { a = x / 4;

2020-06-20 15:38:52 1045

原创 从输入任意个整型数,统计其中的负数个数并求所有非负数的平均值,结果保留一位小数,如果没有非负数,则平均值为0

注意:以下代码中的输入个数是自己先确定的!!!#include <stdio.h>#include <iostream>#include <iomanip>#include <vector>using namespace std;double Average(int arr[]){ int count = 0; int num = 0; int total = 0; for (int i = 0; i < 128; i++

2020-06-20 15:30:50 1962

原创 用C++实现从键盘输入一个字符串,并求该字符串的倒序。

#include<stdio.h>#include<string.h>#include <iostream>using namespace std;void reverse(char* str){ char tmp = *str; int len = strlen(str); *str = *(str + len - 1); *(str + len - 1) = '\0'; if (strlen(str) > 1) reverse(s

2020-06-16 10:05:53 1274

原创 求两个正整数的最小公倍数

#include<stdio.h>#includeusing namespace std;int min_num(int a, int b){int max;max = (a > b) ? a : b;while (1){ if (max % a == 0 && max % b == 0) { cout << "最小公倍数是: " << max << endl; break; } else { ma

2020-06-09 21:38:10 989

原创 远程登录Linux服务器

使用SecureCRT时,如果点击Quick Connect后出现 connect time out。一般情况是CentOS界面右上角的网络连接没有成功。如下图:图片上面的网络连接成功,这样在SecureCRT可以正常操作。

2020-06-09 17:18:55 136

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除