Re-translate the Japanese version (#1871)

* Retranslate Japanese docs with GPT-5.4

* Retranslate Japanese code with GPT-5.4
This commit is contained in:
Yudong Jin
2026-03-30 07:30:15 +08:00
committed by GitHub
parent fe6443235b
commit d7b2277d2b
1444 changed files with 83312 additions and 8363 deletions

View File

@@ -6,24 +6,24 @@
#include "../utils/common.hpp"
/* ドライバーコード */
/* Driver Code */
int main() {
int num = 3;
size_t hashNum = hash<int>()(num);
cout << "The hash value of integer " << num << " is " << hashNum << "\n";
cout << "整数 " << num << " のハッシュ値は " << hashNum << "\n";
bool bol = true;
size_t hashBol = hash<bool>()(bol);
cout << "The hash value of boolean " << bol << " is " << hashBol << "\n";
cout << "真偽値 " << bol << " のハッシュ値は " << hashBol << "\n";
double dec = 3.14159;
size_t hashDec = hash<double>()(dec);
cout << "The hash value of decimal " << dec << " is " << hashDec << "\n";
cout << "小数 " << dec << " のハッシュ値は " << hashDec << "\n";
string str = "Hello algorithm";
string str = "Hello アルゴリズム";
size_t hashStr = hash<string>()(str);
cout << "The hash value of string " << str << " is " << hashStr << "\n";
cout << "文字列 " << str << " のハッシュ値は " << hashStr << "\n";
// C++では、組み込みのstd:hash()は基本データ型のハッシュ値のみを提供
// 配列やオブジェクトのハッシュ値計算は手動で実装する必要がある
}
// C++ では、組み込みの std::hash() は基本データ型のハッシュ値計算しか提供しない
// 配列やオブジェクトのハッシュ値計算は自分で実装する必要がある
}