<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

Quyidagi kodni C dan Nimga tarjima qiling. Siwin kutubxonasidan foydalaning. ```c void change_window_text(HWND hwnd) { static std::wstring s_old; wchar_t s[100]; swprintf(s, 100, L"%d %4.1e", all_tetron.size, mutator::get_main_scale()); if (s_old == s) return; s_old = s;Window SetTexthwnd, s); } ```<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Bu kodni Nim-ga siwin kutubxonasi yordamida tarjima qiling: ``` import siwin proc change_window_text(hwnd: HWND) = static s_old: wstring var s = $all_tetron.size & " " & $mutator.get_main_scale).fmt "("4.1e") if s_old == s: return s_old = s SetWindowText(hwnd, s) `` ` ***HWND*** - Windows API-dagi oyna deskriptorining ma'lumotlar turi. SetWindowText funksiyasi oyna sarlavhasi matnini o'rnatadi. Siz siwin kutubxonasini nimble paket menejeri yordamida o'rnatishingiz mumkin: ``` nimble install si ```win<|eot_id|><|start_header_id|>user<|end_header_id|>

Kodni va uning maqsadini yozing<|eot_id|>