我用c#编写了一款猜数字游戏,系统随机生成一个1到100之间的数字,玩家进行猜测,如果猜错,提示玩家数字过大或过小,如果猜对恭喜玩家胜利,并且推出游戏。 #include<iostream> using namespace std; int main() { int num = rand() % 1 ...
分类:
其他好文 时间:
2021-04-13 12:04:34
阅读次数:
0
【管道】 https://www.cnblogs.com/sparkdev/p/10997135.html管道(pipe)是进程间通信的一种实现方式。在 Linux 系统中,管道本质上是一种特殊的文件,它的主要用途是实现进程间的通信。 管道的一个显著特点是:创建一个管道后,会获得两个文件描述符,分别 ...
分类:
系统相关 时间:
2021-04-13 11:51:05
阅读次数:
0
前言 StreamAPI是java8提供的一种方便,高效操作容器的工具。 简单使用 import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; public class Client { pu ...
分类:
编程语言 时间:
2021-04-13 11:49:18
阅读次数:
0
using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions; namespace ConsoleApplication1{ class Class1 { pr ...
分类:
其他好文 时间:
2021-04-13 11:44:10
阅读次数:
0
ReentrantLock是可重入锁,并且可以实现公平锁。Sychronized是可重入锁、非公平锁。 话不多说,上demo: 1 package com.example.demo.util; 2 3 import java.util.concurrent.locks.ReentrantLock; ...
分类:
其他好文 时间:
2021-04-12 12:54:59
阅读次数:
0
需求分析:从收费的起点到终点收费系统 时间:3minutes 设计文档:3个label 2个button 1个comboBox 时间:5minutes 设计复审:李娟娟复审 时间:20minutes 代码规范:使用驼峰式命名 时间:3minutes 具体设计: 输入两个数字得出正确的结果 时间 2m ...
分类:
其他好文 时间:
2021-04-12 12:46:33
阅读次数:
0
通过 lsof 命令,可以找到 Oracle 的 client 端 和 server 端的进程。 例如,我从远端连接到 oracle 数据库: -bash-4.1$ sqlplus sys/oracle@my19c as sysdba SQL*Plus: Release 12.2.0.1.0 Pro ...
分类:
数据库 时间:
2021-04-10 13:37:55
阅读次数:
0
归并排序介绍 一种分而治之思想 归并排序步骤 从下往上的归并排序(自下而上的迭代) 从上往下的归并排序(自上而下的递归):它与"从下往上"在排序上是反方向的。它基本包括3步: ① 分解 -- 将当前区间一分为二,即求分裂点 mid = (low + high)/2; ② 求解 -- 递归地对两个子区 ...
分类:
编程语言 时间:
2021-04-10 13:21:25
阅读次数:
0
public class Demo { public static void main(String[] args) { System.out.println(Contains1("abfadawdawdawd", ".*daw.*")); System.out.println(Contains2( ...
分类:
其他好文 时间:
2021-04-10 13:19:37
阅读次数:
0
代码 # -*- coding: utf-8 -*- from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QFrame, QApplication, QMainWindow import sys class Ui_MainW ...
分类:
其他好文 时间:
2021-04-10 13:08:17
阅读次数:
0