DEV Community

madina1575
madina1575

Posted on • Edited on

3 1

<Iomanop> kutubxonasi

- bu kutubxona chop etishdagi still va formatlarni boshqaradi.

Bugun bu kutubxonadagi ikkita buyruq haqida ma'lumot olasiz: setwith va setfill.

setw() - chop etaliyotgan obyekt uchun consoleda kamida () ichiga yozilgancha joy ajratadi.

Agar joylar soni obyekt hajmidan katta bo'lsa, qolgan joylar bo'sh qoladi.

setfill() - setw() bilan birgalikda ishlatiladi, bu funksiya bo'sh qolib ketgan joylarni (kataklarni) nima bilan to'ldirishni aytadi va () ichida '' lar ichida nima bilan to'ldirish kerakligi yoziladi.

setw() - kenglikni o'rnatish ma'nosiga ega.

setfill() - o'sha joyni (bo'shliqni) to'ldiradi.

Bu buyruqlarni ishlatayotganingizda kutubxonasini e'lon qilish esdan chiqmasin aks holda hamma qilgan ishingiz bir tiyinga qimmat deb hisoblash mumkin!

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay