注:実はかくいう私も完全定年となった2020年(コロナパンデミック勃発の年でもありますが)にEmbarcaderoからC++ Builder(1年間のトライアル版)とMicrosoftからVisual Studio 2019をダウンロードして「20年ぶりのモダンプログラミング環境」と向き合いましたが、当時の私の(プログラミング力量が低かったことに加え)PCがCore - i7とは言え4 Coreで遅かったので(特にエディターの多機能が災いした遅さに)耐え切れず、20年前の自分自身の開発環境(BCCForm and BCCSkelton)に戻ったというのがこのブログの誕生物語です。
// C# Sort Comparison
///////////////////////
using System;
using System.Diagnostics; //Stopwatchを使う為
namespace Comparison_Sort
{
class comparison_sort
{ ///////////
//定数定義
///////////
const int MAX = 10000; //取り敢えず10,000がお勧め ////////////////////
// 共通テスト用配列
////////////////////
int[] original = new int[MAX];
double[,] results = new double[4, MAX];
///////////////
//Mainメソッド
///////////////
public static void Main()
{
comparison_sort cs = new comparison_sort();
Stopwatch sw = new Stopwatch();
sw.Start();
for(int i = 0; i < MAX; i++) {
cs.comparison(i);
}
for(int i = 0; i < 4; i++) {
cs.print_result(i);
}
sw.Stop();
TimeSpan ts = sw.Elapsed; //時間ts.Hours, 分ts.Minutes, 秒ts.Seconds, ミリ秒ts.Milliseconds
string elapsed = String.Format("Total time consumed for the above processing is: {0:00.000000}", ts.Milliseconds);
Console.WriteLine(elapsed);
Console.WriteLine("Push CR key ..." + Environment.NewLine);
Console.Read(); //コンソールを閉じない為
}
・ついこの間の11月24日に新しい(私があまり気に入らない)Visual Studio 2026がリリースされたそうで、旧機をこのIDEの専用テスト機として使い、このブログのために(単にディスるのではなく、実際に体験して印象や評価をコメントする)新たな【Visual Studio探検記】を始めてはどうか?
要すれば「最初っからWindows 11が入っているPCは、「Installed Key」キーであり、販売チャネルによる違い(OEM vs. VOLUME)があるにせよ、CPUやマザーボードというハードウェアに埋め込まれたプロダクトキーで認証が行われる(デジタルライセンス認証)ので、通常手動によるプロダクトキーの入力は不要」ということのようです。
Please provide a picture of the bottom of your machine with the SN code and a record of your machine purchase.
Meanwhile, please check if your machine is an OEM Key in the following way.
Press Windows+R at the same time, input cmd , press enter. Input the command slmgr.vbs -dli, press enter. Send us the shown message.
Have a beautiful day!"
が来て、必要な情報のやり取りが始まりました。この要請に対して画像を送ると、次はBonyさんから"purchase records that include the store where the purchase was made, the purchase time, and the order number"が必要、と連絡が来ました。さあ大変。アマゾンで海外から物品を購入したので、そのサイトの画像を送っても「購入記録」や「販売店」情報がわかりません。頭を抱えてアマゾンの当該購入履歴を確認すると「Invoice」を取得できるようじゃないですか!このPDFのInvoiceを取得すると、そこにオーダー日時、番号や深圳の販売店の情報が書かれており、何とか対応することができました。