插入排序的原理: 将待排序的元素分为两部分,第一部分用来保存已排序的,第二部分保存还未排序的,初始时第一部分为空,第二部分为整个数组; 开始排序: 从第二部分取出一个元素放到第一部…
import java.util.LinkedList; /** * java栈数据结构的LinkedList实现 */ public class LinkedListAsStac…
getchar函数从输入流中读取一个单个的字符, 如果输入的是字符串,函数也只读取头一个字符,如果下面还有getchar函数则接着上个getchar函数读到的下一个字符读而不需要继…
import android.app.Activity; import android.content.Context; import android.content.Intent…
USE [master] GO if exists (select * from sys.databases where name = 'Test_1') drop databas…
本文介绍如何使用CreateFileMapping,MapViewOfFile创建内存映射文件,如何向内存映射文件中写入数据,读取数据。 #include <iostream…
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import ja…
1. 概述 RMQ(Range Minimum/Maximum Query),即区间最值查询,是指这样一个问题:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<…
- 播放声音 - MediaPlayer 播放器, 同时只能播放一个音乐. 可以播放大文件. 播放背景音乐. MediaPlayer mediaPlayer = new Media…
#include<stdio.h> #include<string.h> #include<iostream> using namespace …
TEST_FILE_NAME = '乘法口诀.txt' #创建文件 File.open(TEST_FILE_NAME, 'w+') do |file| for x in 1..9 …
/** * 字符串序列化 * @param str * @return */ public static String compareSerialization(String st…
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Excellent blog here Also your website loads up very fast What web host are you using Can I get your affiliate link to your host I wish my web site loaded up as quickly as yours lol