自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(129)
  • 资源 (9)
  • 收藏
  • 关注

原创 【C++】员工排序,vector、multimap

#include<iostream>using namespace std;#include"list"#include<algorithm>#include"vector"#include"string.h"#include"map"#include"ctime"#define CEHUA 0 #define MEISHU 1 #define YANFA 2class Worker {public: string m_name; int m_salar

2022-05-31 15:46:17 189

原创 [STL]选手得分

#include<iostream>using namespace std;#include"vector"#include"deque"#include"string.h"#include<algorithm>#include"ctime"class Person {public: Person(string name, int score) { this->m_name = name; this->m_score = score; }pu

2022-05-26 22:30:54 131

原创 【C++】模板,数组排序

#include<iostream>using namespace std;template<typename T>void myswap(T& a, T& b) { T temp = a; a = b; b = temp;}template<class T>void mysort(T a[],int len) { for (int i = 0; i < len; i++) { int max = i; for (int

2022-05-05 20:56:34 185

原创 【C++】关系符号运算重载

#include<iostream>using namespace std;#include <string.h>class person {public: person(string name, int age) { m_name = name; m_age = age; } //重载关系运算符 bool operator==(person& p) { if (this->m_name == p.m_name && t

2022-03-22 19:21:04 322

原创 【C++】赋值运算符重载(堆区开辟内存,深拷贝)

#include<iostream>using namespace std;#include <string.h>class person {public: person(int age) { m_age=new int(age); } ~person() { if (m_age != NULL) { delete m_age; m_age = NULL; } } //重载赋值运算符 person& operator=(pers

2022-03-22 19:06:26 745

原创 【C++】递增运算符重载

在这里插入#include<iostream>using namespace std;#include <string.h>class Integer { friend ostream& operator<<(ostream& cout, Integer inter);public: Integer() { m_Num = 0; } //重载前置++运算符 Integer& operator++() { m_Num++;

2022-03-22 18:26:24 686

原创 【C++】类和对象,加号运算符重载

#include<iostream>using namespace std;#include <string.h>class Person {public: //Person operator+(Person& p) {//通过成员函数实现 + 号运算符重载 // Person temp; // temp.m_A = this->m_A + p.m_A; // temp.m_B = this->m_B + p.m_B; // return tem

2022-03-22 15:46:49 1057

原创 【C++】设计类来判断点和圆的位置关系

头文件circle.h#pragma once#include <iostream>using namespace std;#include "point.h"class circle {//圆类//行为:设置半径,获取半径,设置圆心,获取圆心public:void setR(int r);int getR(); void setcenter(point center);point getcenter();private:int m_r;point m_center.

2022-01-08 17:34:36 625

原创 【C++】结构体定义中进行冒泡排序

#include <iostream>using namespace std;#include <string.h>struct hero { string name; int age;};void bubblesort(struct hero s[], int len) {//冒泡升序排列 for (int i = 0; i < len-1; i++) { for (int j = 0; j < len - 1 - i; j++) { if

2022-01-05 11:26:57 404

原创 【C++】指针进行数组冒泡排序

#include <iostream>using namespace std;#include <string.h>void bubbleSort(int* a, int len) { for (int i = 0; i < len - 1; i++) { for (int j = 0; j < len - 1 - i; j++) { if (a[j] > a[j + 1]) { int temp = a[j + 1]; a[j

2022-01-04 23:38:29 326

原创 【C++】二维数组求每一行之和

#include <iostream>using namespace std;int main() { int a[3][3] = { {100,99,98}, {100,97,98}, {100,96,98}, }; cout << "二维数组" << endl; for (int i = 0; i <3; i++) {//外层控制行数 for (int j = 0; j < 3; j++) {//内层控制列数 cout

2022-01-04 15:59:21 2381 1

原创 【C++】冒泡排序

#include <iostream>using namespace std;int main() { int a[] = { 1,2,8,9,5,4 }; cout << "排序前数组" << endl; for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++) { cout << a[i] << endl; } //比较相邻的两个元素,如果第一个比第二个大,交换两个元素,.

2022-01-04 15:42:01 322

原创 【C++】一维数组数据逆置

#include <iostream>using namespace std;int main() { int a[] = { 1 ,2, 3, 5, 4 }; cout << "原始数据" << endl; for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++) { cout << a[i] << endl; } int start = 0;//第一位数下角标 int e

2022-01-04 15:13:24 247

原创 【C++】通过全局函数、成员函数判断立方体是否相等,并计算体积、面积

#include<iostream>using namespace std;class cu{ //创建立方体类public: //行为 //设置获取长宽高 void setm_L(int L) {//设置长 m_L = L; } int getm_L() {//获取长 return m_L; } void setm_W(int W) {//设置宽 m_W = W; } int getm_W() {//获取宽 return m_W; }.

2021-11-01 16:20:47 350

原创 【C++】通过类显示学号和姓名

#include<iostream>using namespace std;#include<string>class student //设计一个类{public://访问权限 int m_number;//属性 string name; //行为 //展示学号和姓名 void showstudent(){ cout << "姓名" << name << endl; cout << "学号" &l

2021-11-01 11:05:52 2631

原创 【C++】通过类来计算圆的周长

#include<iostream>using namespace std;const double PI = 3.14;class circle //设计一个类{public://访问权限 int m_r;//半径为属性 //行为 //获取圆周长 double zhouchang() { return 2 * PI * m_r; }};int main() { //设计一个圆类,求圆周长 circle c1;//通过圆类创建具体的圆(对象) c1.

2021-11-01 10:34:48 451

原创 【C++】通信录管理系统

“1.添加联系人”“2.显示联系人”“3.删除联系人”“4.查找联系人”“5.修改联系人”“6.清空联系人”“7.退出通信录”#include<iostream>#include<string>#define Max 1000using namespace std;//联系人结构体struct Person{ //姓名 string H_Name; //性别 int H_Sex;//采用整形为防止输入出男性女性外的词 //年龄 in

2021-10-29 11:03:38 74

原创 【C++】函数的分文件编写举例

#include<iostream>using namespace std;#include"swap.h"int main() { int a = 2; int b = 3; swap(a, b); system("pause"); return 0;}//1.创建.h头文件//2.创建.cpp源文件//3.头文件中写函数声明//4.源文件写函数定义#include"swap.h"void swap(int a, int b) {//函数的定义 int .

2021-10-28 15:46:01 95

原创 【C++】 switch语句实际举例

#include<iostream>using namespace std;int main() { //switch语句 //电影打分 cout << "请打分" << endl; int score = 0; cin >> score; cout << "打的分数为" << score << endl; switch (score) { case 10: cout << "您

2021-10-28 15:10:28 1232

原创 【Java】打印杨辉三角形

import java.util.ArrayList;import java.util.List;public class Main{ public List<List<Integer>> generate(int numRows) { List<List<Integer>> list = new ArrayList&l...

2019-08-20 17:13:39 166

原创 【Java】链表的插入、删除问题

## Main.javapublic class Main { private static void test(List list) { list.add(1); list.add(2); list.add(0,99); list.add(4); System.out.println(list.get(2)...

2019-08-18 19:42:56 185

原创 【Java】顺序链的插入、删除、查找、扩容问题

## List.javapublic interface List { // 尾插 boolean add(int element); // 把数据插入到 index 下标处 boolean add(int index, int element); int get(int index); int set(int index, int val)...

2019-08-18 15:16:16 118

原创 【Java】以给定x为基准分割链表,原顺序不变

## Main.javapublic class Main { public static void main(String[] args) { Node n1 = new Node(1); Node n2 = new Node(5); Node n3 = new Node(9); Node ...

2019-08-17 15:57:07 190

原创 【Java】链表的合并,合并后仍有序

## Main.javapublic class Main { public static void main(String[] args) { Node n1 = new Node(1); Node n2 = new Node(2); Node n3 = new Node(3); n...

2019-08-17 15:32:04 79

原创 【Java】实现复杂链表的复制

##Main.javapublic class Main { public static void main(String[] args) { Node n1 = new Node(1); Node n2 = new Node(2); Node n3 = new Node(3); Node n4 = new Node(3);...

2019-08-16 20:54:45 117

原创 【Java】断整数是否为2的整数次幂

import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sca = new Scanner(System.in); int n=sca.nextInt(); System.out.println(judge...

2019-08-13 19:55:44 117

原创 【Java】找出数组中不重复的数字,数组中只有一个不重复数字

import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sca = new Scanner(System.in); int[] num = new int[5]; for (int i = 0; i &lt...

2019-08-12 22:09:00 1580

原创 【Java】统计字符串中数字个数

import java.util.Scanner;public class Main{ public static void main(String[] args){ Scanner sca=new Scanner(System.in); String str=sca.nextLine(); int number=0; int ...

2019-08-12 16:38:29 2445

原创 Java 实现把字符串转换成整数

public class Main{ public static void main(String[] args){ int num=StrToInt("123456"); System.out.println(num); } public static int StrToInt(String str){ if(str.l...

2019-08-11 18:34:39 323

原创 【Java】字符串的逆置

public class Main{ public static void main(String[] args){ num("abcdefs"); } public static void num(String array){ int index1=0; int index2=array.length()-1; ...

2019-08-10 15:44:26 324

原创 【Java】左旋字符串

public class Main{ public static void main(String[] args){ leftCycle("abcdefs",3); } public static void leftCycle(String array,int n){ int index1=0; int index2=n-...

2019-08-09 22:19:27 374

原创 【Java】找出无序数组中,出现次数超过长度一半的数字

import java.util.Arrays;public class Main { public static void main(String[] args) { int[] a={1,2,2,2,3,6,2}; Main cc = new Main(); System.out.println(cc.find(a)); }...

2019-08-09 15:57:33 198

原创 【Java】给定一个有序整数数组,找出其中两个数相加等于目标值,返回下标值

import java.util.Arrays;import java.util.HashMap;public class Main { public static void main(String[] args){ int[] num={1,2,3,6,8,11}; int[] c=find(num,9); System.out...

2019-08-08 20:38:08 1394

原创 【Java】求十进制数在内存中二进制1的个数

public class Main { public static void main(String[] args){ Main find=new Main(); int t=find.binary(6); System.out.println(t); } public static int binary(int n)...

2019-08-08 11:21:35 296

原创 【Java】将一维数组的奇数置与偶数前面,不考虑变化后顺序

import java.util.Arrays;public class Main { public static void main(String args[]) { int[] a=new int[]{1,2,3,4,5,6,7,8,9}; sort(a); System.out.println(Arrays.toString(a)); ...

2019-08-06 22:15:24 170

原创 【Java】在二维数组中查找整数

public class Main{ public static void main(String args[]){ int col=4; int row=4; int[][] a=new int[row][col]; for(int i=0;i<col;i++){ for(int j=0;j&l...

2019-08-04 16:15:09 148

原创 【Java】(interface)100内3的倍数

interface Condition{ boolean test(int val);}public class Main { private static void printCondition(int[] list,Condition cond){ for(int val:list){ if(cond.test(val)){ ...

2019-08-03 15:57:42 1285

原创 【Java】顺序链表的插入(迭代器)

interface Iterator{ boolean hasNext(); int next();}interface List{void pushFront(int val); void pushBack(int val); void insert(int index, int val); int size(); Iterator iterator();}interf...

2019-06-29 15:45:19 347

原创 【Java】顺序链的节点插入(继承、接口)

interface Iterator{ boolean hasNext(); int next();}interface List{ void pushFront(int val); void pushBack(int val); void insert(int index,int val); int size(); void display();}abstract clas...

2019-06-26 00:46:47 161

原创 【JAVA】入一个链表,按链表值从尾到头的顺序返回一个ArrayList

import java.util.ArrayList;public class Solution { ArrayList list=new ArrayList(); public ArrayList<Integer> printListFromTailToHead(ListNode listNode) { if(listNode!=null)...

2019-06-25 00:49:50 157

多态方式的职工管理系统

职工添加、删除、查找功能

2022-04-28

music算法不考虑信号带宽.txt

music算法

2021-07-12

music算法考虑信号带宽.txt

music算法考虑信号带宽

2021-07-12

非相干信号子空间(ISSM)算法.txt

(ISSM)算法

2021-07-12

相干信号子空间(TCT)算法.txt

相干信号子空间(TCT)算法

2021-07-12

相干信号子空间(SST)算法.txt

相干信号子空间(SST)算法

2021-07-12

相干信号子空间(RSS)算法.txt

相干信号子空间(RSS)算法

2021-07-12

稀疏信号L1-SVD算法.txt

L1-SVD算法

2021-07-12

TCT、RSS、SST和TLS-CSM宽带算法的均方误差的比较;5元均匀园阵;.txt

算法的均方误差的比较

2021-07-12

空空如也

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

TA关注的人

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