自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (1)
  • 收藏
  • 关注

原创 火车票售票系统的放票功能 多线程实现服务器与多个客户端通信 高级java课题测试,课设,作业

package com.hanlei.test02.client; import javax.swing.*; import java.io.*; import java.net.Socket; import java.net.UnknownHostException; public class Client extends JFrame { Socket socket; PrintWriter pWriter; BufferedReader bReader; Stri.

2021-12-11 17:43:15 577

原创 maven setting,xml

<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownershi

2021-10-02 16:41:57 146

原创 软件开发小组图片库

2021-09-30 16:21:50 146

原创 Windows多线程控制台程序

学习笔记 Windows多线程控制台程序目的:学习和掌握如何编写Windows多线程控制台程序。通过编写程序,加深对进程和线程关系的理解,掌握多线程程序的执行和编写技巧。设计要求:写一个单进程多线程的Windows控制台程序,该程序在一个进程内建立N个线程来执行指定的任务。N由命令行传递给系统。Win32控制台程序中,主函数的格式如:Void main(int argc,char *argv[]),可以获取命令行参数。通过VC++“工程/设置”的C/C++属性页设置应用程序为“MTD”多线程。利用win32

2021-07-05 08:08:28 2662 18

原创 练习 4.5: 写一个函数在原地完成消除[]string中相邻重复的字符串的操作。

Exercise 4.5: Write an in-place function to eliminate adjacent duplicates in a []string slice 翻译 :写一个函数在原地完成消除[]string中相邻重复的字符串的操作。 题目要求:slice切片底层数不可更改 package main import "fmt" // Write an in-place function to eliminate adjacent duplicates in a []string

2021-06-29 13:46:03 252 2

原创 015 3Sum

题目 Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero 结果不重复 package main import ( "fmt" "sort" ) func threeSum(nums []int) [][]int { result

2021-06-13 17:37:26 77

原创 016 3SumClosest

题⽬ Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assume that each input would have exactly one solution. 给定⼀个数组,要求在这个数组中找出 3 个数之和离

2021-06-13 17:34:44 123

原创 013 Roman to integer

Roman numerals are represented by seven different symbols: I , V , X , L , C , D and M . For example, two is written as II in Roman numeral, just two one’s added together. Twelve is written as, XII , which is simply X + II . The number twenty seven is wri

2021-05-30 14:03:19 73

原创 011 Container with most water

Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). nvertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines,which together with x-axis forms a container, such t

2021-05-30 13:44:25 67

原创 009 Palindrome Number

判断回文数 Determine whether an integer is a palindrome. An integer is a palindrome when it reads thesame backward as forward. package main //PalindromeNumber 回文数字 //Determine whether an integer is a palindrome. An integer is a palindrome when it reads the //s

2021-05-29 12:52:11 73

原创 003 Longest Substring

Given a string, find the length of the longest substring without repeating characters 规律分析: abcebag abce cebag ajhsdvcsbabsn ajhsdvc absn 遇到重复字符就截断,从上一个或下一个该重复字符重新计数 package main import "fmt" // Given a string, find the length of the long

2021-05-28 14:15:49 74

原创 MySQL安装-8.0.23

参考的B站视频教学 视频地址:https://www.bilibili.com/video/BV1VE411x7fZ MySQL安装包 下载地址: https://dev.mysql.com/downloads/mysql/ 点进去后: 就开始下载 完成后解压提取到你所指定的目录 打开该文件夹 新建my.ini my.ini 内容配置如下: [mysqld] # 设置3306端口 port=3306 # 设置mysql的安装目录 basedir=D:\Mysql\mysql-8.0.23-w

2021-02-26 14:06:06 571 2

原创 FizzBuzz问题。三的倍数 “Fizz”代替,5的倍数“Buzz”。3和5的倍数“FizzBuzz”。

P19-Q2(0)FizzBuzz 编写一个程序,打印从 1 到 100 的数字。当是三的倍数就打印 “Fizz”代替数字,当是5的倍数就打印 “Buzz”。当数字同时是3和5的倍数时,打印 “FizzBuzz”。 package main //韩磊 19 import( "fmt" ) func main() { for i := 1; i <= 100; i++ { switch { case i % 3 == 0 && i %

2020-09-01 09:53:53 806

原创 约瑟夫josephu问题 GO 单向环形链表实现

josephu问题 n(num)个男孩围一圈,从1数到m,第m个孩子出列,下一个接着从1,依次类推,设出列k个孩子,由此产生一个出队编号的序列 package main //韩磊 201916010619 import ( "fmt" ) //小孩的结构体 type Boy struct { No int // 编号 Next *Boy // 指向下一个小孩的指针[默认值是nil] } // 编写一个函数,构成单向的环形链表 // num :表示小孩的个数 // *Boy : 返回该环形的链表

2020-08-31 17:37:01 121

原创 GO单向环形循环链表

GO单向环形循环链表 // 单向环形链表 结构体 韩磊 201916010619 package main import ( "fmt" ) type CatNode struct {//定义猫的结构体结点 no int //猫猫的编号 name string id int //加入链表的编号 next *CatNode } //全局 环形链表 初始元素 桥梁元素 var first = &CatNode{} var t = &CatNode{} va

2020-08-27 07:59:47 425

1lunsahahs adad

1112121

2022-05-16

空空如也

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

TA关注的人

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