<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Imron</title>
    <description>The latest articles on DEV Community by Imron (@whysoempty).</description>
    <link>https://dev.to/whysoempty</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3754629%2F8721cf5e-e17d-4830-8c37-a3aaca75aae9.jpg</url>
      <title>DEV Community: Imron</title>
      <link>https://dev.to/whysoempty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whysoempty"/>
    <language>en</language>
    <item>
      <title>System information | Linux</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Wed, 18 Feb 2026 18:22:02 +0000</pubDate>
      <link>https://dev.to/whysoempty/system-information-linux-30lk</link>
      <guid>https://dev.to/whysoempty/system-information-linux-30lk</guid>
      <description>&lt;p&gt;If you don't know what thing do any kind of tools, you can use &lt;code&gt;-h&lt;/code&gt;, or &lt;code&gt;--help&lt;/code&gt;, or &lt;code&gt;man&lt;/code&gt; this commands to access help if needed. &lt;/p&gt;

&lt;p&gt;Since we’ll be working with various Linux systems, it's important to understand their structure, including system details, processes, network configurations, users/user settings, and directories, along with their related parameters. Below is a list of essential tools to help gather this information. Most of these tools come pre-installed. However, this knowledge is not only crucial for routine Linux tasks, but also plays a key role when assessing security configurations, identifying vulnerabilities, or preventing potential security risks in Linux operating systems.&lt;/p&gt;

&lt;p&gt;Command -- Description&lt;/p&gt;

&lt;p&gt;&lt;code&gt;whoami&lt;/code&gt;     Dispalys current username.&lt;br&gt;
&lt;code&gt;id&lt;/code&gt;         Returns users identify.&lt;br&gt;
&lt;code&gt;hostname&lt;/code&gt;   Sets or prints the name of current host system&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>cli</category>
      <category>linux</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Arifmetic Operators | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 08:46:56 +0000</pubDate>
      <link>https://dev.to/whysoempty/arifmetic-operators-c-559b</link>
      <guid>https://dev.to/whysoempty/arifmetic-operators-c-559b</guid>
      <description>&lt;p&gt;&lt;strong&gt;C++ da Arifmetik Operatorlar&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C++&lt;/strong&gt; dasturlash tilida arifmetik operatorlar sonlar ustida matematik amallar bajarish uchun ishlatiladi. Agar siz kalkulyatorda qanday amal qilsangiz, C++ da ham deyarli shunday ishlaydi.&lt;/p&gt;

&lt;p&gt;arefmetik operatorlar: &lt;code&gt;+,&lt;/code&gt; &lt;code&gt;-,&lt;/code&gt; &lt;code&gt;*,&lt;/code&gt; &lt;code&gt;/,&lt;/code&gt; &lt;code&gt;%&lt;/code&gt; (modulus)&lt;/p&gt;

&lt;p&gt;ikkita operand ustida amal bajaradi.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;+&lt;/code&gt; &lt;strong&gt;(Qo‘shish)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Ikki sonni qo‘shish uchun ishlatiladi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 5;
int b = 3;
int c = a + b;  // Natija: 8

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;-&lt;/code&gt; &lt;strong&gt;(Ayirish)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Bir sondan ikkinchi sonni ayiradi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 10;
int b = 4;
int c = a - b;  // Natija: 6

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;*&lt;/code&gt; &lt;strong&gt;(Ko‘paytirish)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sonlarni ko‘paytirish uchun ishlatiladi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 6;
int b = 7;
int c = a * b;  // Natija: 42

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;/&lt;/code&gt; &lt;strong&gt;(Bo‘lish)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Bir sonni ikkinchi songa bo‘ladi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 10;
int b = 2;
int c = a / b;  // Natija: 5

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;%&lt;/code&gt; &lt;strong&gt;(Qoldiq – Modulus)&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Bo‘lishdan qolgan qoldiqni qaytaradi. Faqat butun sonlar bilan ishlaydi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 7;
int b = 3;
int c = a % b;  // Natija: 1

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>beginners</category>
      <category>coding</category>
    </item>
    <item>
      <title>Setw() &amp; Setfill() function | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 08:31:29 +0000</pubDate>
      <link>https://dev.to/whysoempty/setw-setfill-function-c-1dfb</link>
      <guid>https://dev.to/whysoempty/setw-setfill-function-c-1dfb</guid>
      <description>&lt;p&gt;&lt;strong&gt;C++&lt;/strong&gt; da &lt;code&gt;setw()&lt;/code&gt; va &lt;code&gt;setfill()&lt;/code&gt; – &lt;strong&gt;chiroyli formatlashda ishlatiladi&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C++&lt;/strong&gt; da oddiy cout bilan ma’lumot chiqarish oson. Lekin natijani chiroyli, tekis va tartibli ko‘rsatish kerak va &lt;code&gt;setw()&lt;/code&gt; va &lt;code&gt;setfill()&lt;/code&gt; bu funksiyani bajaradi. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bu funksiyalar&lt;/strong&gt; &lt;code&gt;&amp;lt;iomanip&amp;gt;&lt;/code&gt; kutubxonasiga tegishli.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;setw()&lt;/code&gt; &lt;strong&gt;nima qiladi?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;setw()&lt;/code&gt; — chiqarilayotgan qiymat uchun kenglik (width) belgilaydi.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ya’ni, nechta joy egallashini aytamiz.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Misol&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;iomanip&amp;gt;

using namespace std;

int main()
{
    cout &amp;lt;&amp;lt; setw(5) &amp;lt;&amp;lt; 10 &amp;lt;&amp;lt; endl;

    return 0;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;setw(5)&lt;/code&gt; — &lt;strong&gt;5 ta joy ajratdi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;10&lt;/code&gt; esa o‘ng tomonga tekislandi.&lt;/p&gt;

&lt;p&gt;Oldiga 3 ta probel qo‘shildi.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;setw() faqat bitta keyingi qiymat uchun ishlaydi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Masalan&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cout &amp;lt;&amp;lt; setw(5) &amp;lt;&amp;lt; 10 &amp;lt;&amp;lt; 20;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu yerda faqat &lt;code&gt;10&lt;/code&gt; formatlanadi. &lt;code&gt;20&lt;/code&gt; oddiy chiqadi.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;setfill() nima qiladi?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;setfill()&lt;/code&gt; — bo‘sh joyni qaysi belgi bilan to‘ldirishni belgilaydi.&lt;/p&gt;

&lt;p&gt;Default holatda bo‘sh joy probel ( ) bilan to‘ladi.&lt;/p&gt;

&lt;p&gt;Misol&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cout &amp;lt;&amp;lt; setfill('*') &amp;lt;&amp;lt; setw(5) &amp;lt;&amp;lt; 10;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;***10

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;5 ta joy ajratildi&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bo‘sh joylar &lt;code&gt;*&lt;/code&gt; bilan to‘ldirildi&lt;/p&gt;

&lt;p&gt;Ikkalasini bir vohta ishlatish:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cout &amp;lt;&amp;lt; setfill('0') &amp;lt;&amp;lt; setw(5) &amp;lt;&amp;lt; 42;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;00042

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>cpp</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Cin Operatori | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 08:13:29 +0000</pubDate>
      <link>https://dev.to/whysoempty/cin-operatori-c-3lfe</link>
      <guid>https://dev.to/whysoempty/cin-operatori-c-3lfe</guid>
      <description>&lt;p&gt;&lt;strong&gt;C++ o‘rganishni boshlagan har bir odam birinchi ko‘radigan narsalardan biri bu cin operatori&lt;/strong&gt;&lt;br&gt;
cin nima?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cin&lt;/code&gt; — bu foydalanuvchidan ma’lumot olish uchun ishlatiladigan obyekt. U &lt;code&gt;&amp;lt;iostream&amp;gt;&lt;/code&gt; kutubxonasiga tegishli.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

int main() 
{
    int yosh;

    cin &amp;gt;&amp;gt; yosh;

    return 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu yerda dastur foydalanuvchidan &lt;code&gt;yosh&lt;/code&gt; qiymatini kutadi.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; &lt;strong&gt;operatori nima qiladi?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cin &amp;gt;&amp;gt; yosh;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Bu yerda &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; — ma’lumotni oqimdan (input stream) o‘zgaruvchiga uzatadi.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bir nechta qiymat olish&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cin&lt;/code&gt; bilan bir nechta o‘zgaruvchini ham birdaniga olish mumkin.&lt;/p&gt;

&lt;p&gt;Misol&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a, b;
cin &amp;gt;&amp;gt; a &amp;gt;&amp;gt; b;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Foydalanuvchi masalan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5 10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;deb kiritsa, &lt;code&gt;a = 5&lt;/code&gt;, &lt;code&gt;b = 10&lt;/code&gt; bo‘ladi.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cin&lt;/code&gt; probelgacha o‘qiydi&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agar string ishlatsak&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string ism;
cin &amp;gt;&amp;gt; ism;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Agar Foydalanuvchi kiritsa&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Ali Valiyev

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;deb yozsa, &lt;code&gt;ism&lt;/code&gt; faqat &lt;code&gt;"Ali"&lt;/code&gt; bo‘ladi.&lt;/p&gt;

&lt;p&gt;Chunki &lt;code&gt;cin&lt;/code&gt; probelgacha o‘qiydi.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Type casting | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 06:46:21 +0000</pubDate>
      <link>https://dev.to/whysoempty/type-casting-c-493e</link>
      <guid>https://dev.to/whysoempty/type-casting-c-493e</guid>
      <description>&lt;p&gt;&lt;code&gt;Type Casting&lt;/code&gt; – C++ (Foundation)&lt;/p&gt;

&lt;p&gt;Type casting – bir turdagi ma’lumotni boshqa turga o‘zgartirish.&lt;/p&gt;

&lt;p&gt;1️⃣ &lt;strong&gt;Implicit (avtomatik) casting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Kompilyator o‘zi o‘zgartiradi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 5;
double b = a;   // int -&amp;gt; double

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2️⃣ &lt;strong&gt;Explicit (qo‘lda) casting&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dasturchi o‘zi o‘zgartiradi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;double x = 5.7;
int y = (int)x;   // 5 bo‘ladi

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Double dan int ga o'tkazganda biz ma'lumotni kismini yoqatamiz.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>learning</category>
      <category>coding</category>
    </item>
    <item>
      <title>Char Types | Belgi turi | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 06:39:19 +0000</pubDate>
      <link>https://dev.to/whysoempty/char-types-belgi-turi-c-2cme</link>
      <guid>https://dev.to/whysoempty/char-types-belgi-turi-c-2cme</guid>
      <description>&lt;p&gt;🔹 &lt;code&gt;char types&lt;/code&gt; – &lt;strong&gt;C++&lt;/strong&gt;&lt;br&gt;
 da belgilar turi&lt;/p&gt;

&lt;p&gt;&lt;code&gt;char&lt;/code&gt; – 1 ta belgi (harf, raqam, simvol) saqlash uchun ishlatiladi.&lt;br&gt;
Hajmi: 1 bayt (8 bit).&lt;/p&gt;

&lt;p&gt;1️⃣ Asosiy &lt;code&gt;char&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char harf = 'A';
char raqam = '5';
char belgi = '#';

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;char bitta qo‘shtirnoq (‘ ’) bilan yoziladi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ASCII bilan ishlaydi&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Har bir belgi aslida son sifatida saqlanadi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char c = 'A';
cout &amp;lt;&amp;lt; int(c);   // 65 raqam chiqadi

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;'A'&lt;/code&gt; → 65 (ASCII kodi)&lt;/p&gt;

&lt;p&gt;2️⃣ &lt;code&gt;signed char&lt;/code&gt; va &lt;code&gt;unsigned char&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;🔹 &lt;code&gt;signed char&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Oraliq: -128 dan 127 gacha&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;signed char a = -50;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔹 &lt;code&gt;unsigned char&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Faqat musbat: 0 dan 255 gacha&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;unsigned char b = 200;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Odatda&lt;/strong&gt; &lt;code&gt;char&lt;/code&gt; ishlatiladi.&lt;br&gt;
Agar &lt;strong&gt;son&lt;/strong&gt; saqlamoqchi bo‘lsangiz, &lt;code&gt;signed&lt;/code&gt; yoki &lt;code&gt;unsigned&lt;/code&gt; ishlatiladi.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;char&lt;/code&gt; va &lt;code&gt;string&lt;/code&gt; farqi&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;char a = 'A'; // 1 ta belgi
string a1 = "A"; // matn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Etibor uchun raxmat hayir!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>coding</category>
    </item>
    <item>
      <title>Setprecision | Floating types | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 06:30:22 +0000</pubDate>
      <link>https://dev.to/whysoempty/setprecision-floating-types-c-nj4</link>
      <guid>https://dev.to/whysoempty/setprecision-floating-types-c-nj4</guid>
      <description>&lt;p&gt;🔹 &lt;code&gt;setprecision&lt;/code&gt; – &lt;strong&gt;C++&lt;/strong&gt; da kasr aniqligini boshqarish&lt;/p&gt;

&lt;p&gt;&lt;code&gt;setprecision&lt;/code&gt; son nechta raqam bilan chiqarilishini belgilaydi.&lt;br&gt;
U &lt;code&gt;&amp;lt;iomanip&amp;gt;&lt;/code&gt; kutubxonasida joylashgan.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;iomanip&amp;gt;
using namespace std;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;1️⃣ &lt;strong&gt;Kangay ishlashi&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;double x = 3.1415926535;

cout &amp;lt;&amp;lt; setprecision(4) &amp;lt;&amp;lt; x;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3.142
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Ushbu funksiya kasr sonlarni nuqtadan keyin x ta raqam aniqlikda yaxlitlaydi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;2️⃣ &lt;strong&gt;Faqat kasrdan keyingi sonlarni belgilash&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Buning uchun fixed ishlatiladi:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cout &amp;lt;&amp;lt; fixed &amp;lt;&amp;lt; setprecision(4) &amp;lt;&amp;lt; x;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3.1416
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Endi bu kasrdan keyin 4 ta raqam degani.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>learning</category>
    </item>
    <item>
      <title>Floating types | Kasrsonlar | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Sat, 14 Feb 2026 06:21:47 +0000</pubDate>
      <link>https://dev.to/whysoempty/floating-types-kasrsonlar-c-3jcd</link>
      <guid>https://dev.to/whysoempty/floating-types-kasrsonlar-c-3jcd</guid>
      <description>&lt;p&gt;C++ da &lt;code&gt;floating types&lt;/code&gt; – bu kasr sonlarni saqlash uchun ishlatiladigan ma’lumot turlari.&lt;/p&gt;

&lt;p&gt;1️⃣ &lt;strong&gt;Asosiy floating turlar&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🔹&lt;code&gt;float&lt;/code&gt;&lt;br&gt;
🔹4 bayt(32 bit)&lt;br&gt;
🔹kichikroq xotira ishlatadi&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;float a = 5.25; // a = 5.25
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔹&lt;code&gt;double&lt;/code&gt;&lt;br&gt;
🔹8 bayt (64 bit)&lt;br&gt;
🔹Eng ko‘p ishlatiladigan tur&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;double b = 5.231315; //b = 5.231315
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔹 &lt;code&gt;long double&lt;/code&gt;&lt;br&gt;
🔹8, 12 yoki 16 bayt (kompilyatorga bog‘liq)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;long double c = 5.2514253255; // c = 5.2514253255
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2️⃣ &lt;strong&gt;Qaysi birini ishlatish kerak?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;float&lt;/code&gt;             Xotira muhim bo‘lsa (masalan o‘yinlar, grafikalar)&lt;br&gt;
&lt;code&gt;double&lt;/code&gt;    Oddiy hisob-kitoblar uchun&lt;br&gt;
&lt;code&gt;long double&lt;/code&gt;   Juda aniq va katta hisoblarda&lt;/p&gt;

&lt;p&gt;👉standart &lt;code&gt;double&lt;/code&gt; ishlatish tavsiya qilinadi.&lt;/p&gt;

&lt;p&gt;3️⃣ &lt;strong&gt;Nega aniqlik muammosi bo‘ladi?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Floating sonlar ikkilik (binary) ko‘rinishda saqlanadi. Ba’zi kasrlar aniq ifodalanmaydi.&lt;/p&gt;

&lt;p&gt;Misol:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;double x = 0.1 + 0.2;
cout &amp;lt;&amp;lt; x;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natuja:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0.30000000000000004
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu floating aniqlik chegarasi&lt;/p&gt;

</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>discuss</category>
      <category>testing</category>
    </item>
    <item>
      <title>Integer types | Butun sonlar | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Thu, 12 Feb 2026 08:47:55 +0000</pubDate>
      <link>https://dev.to/whysoempty/integer-types-butun-sonlar-c-2hb0</link>
      <guid>https://dev.to/whysoempty/integer-types-butun-sonlar-c-2hb0</guid>
      <description>&lt;p&gt;&lt;strong&gt;Assalomu alaykum foydalanuvchilar&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Bugun C++ da Integer types (butun son turlari) haqida qisqa va tushunarli ma’lumot beraman.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Integer nima?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Integer&lt;/code&gt; — bu butun sonlar degani.&lt;br&gt;
Masalan:&lt;br&gt;
-5, 0, 10, 125&lt;/p&gt;

&lt;p&gt;Kasr sonlar (5.6, 3.14) integer emas&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C++ da butun son turlari&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;C++ da bir nechta butun son turlari bor:&lt;/p&gt;

&lt;p&gt;1️⃣ &lt;code&gt;int&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Eng ko‘p ishlatiladi.&lt;br&gt;
Oddiy butun sonlar uchun.&lt;/p&gt;

&lt;p&gt;Masalan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int age = 18; // age = 18

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2️⃣ &lt;code&gt;short&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Kichikroq sonlar uchun.&lt;br&gt;
Xotirada kamroq joy egallaydi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;short son = 100; // son = 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3️⃣ &lt;code&gt;long&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Kattaroq sonlar uchun.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;long lnum = 1000000; // lnum = 1000000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4️⃣ &lt;code&gt;long long&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Juda katta sonlar uchun.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;long long Bnum = 12345678900; // Bnum = 12345678900
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Farqi nimada?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Farqi — &lt;strong&gt;qancha katta son saqlay olishida&lt;/strong&gt;.&lt;br&gt;
Qancha katta tur bo‘lsa, shuncha katta son saqlaydi.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>cpp</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>O'zgaruvchiga nom berish &amp;&amp; Qiymat O'zlashtirish | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Thu, 12 Feb 2026 08:39:49 +0000</pubDate>
      <link>https://dev.to/whysoempty/ozgaruvchiga-nom-berish-qiymat-ozlashtirish-c-54oh</link>
      <guid>https://dev.to/whysoempty/ozgaruvchiga-nom-berish-qiymat-ozlashtirish-c-54oh</guid>
      <description>&lt;p&gt;Assalamu aleykum, C++ dasturlash tilida o'zgaruvchilar alohida kalit so'zlar bilan nomlanadi. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Identifikator nima?&lt;/strong&gt;&lt;br&gt;
Identifikator — bu dasturchi tomonidan beriladigan nom.&lt;br&gt;
Ya’ni o‘zgaruvchi, funksiya yoki o‘zgarmasga qo‘yiladigan nom.&lt;/p&gt;

&lt;p&gt;Masalan:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;age&lt;/code&gt;&lt;br&gt;
&lt;code&gt;nom&lt;/code&gt;&lt;br&gt;
&lt;code&gt;yosh&lt;/code&gt;&lt;br&gt;
&lt;code&gt;ism&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Bularning hammasi identifikator hisoblanadi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Misol&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

int main()
{
    int age = 15;
    string name = "Hello users";
    string country = "Uzbekistan";

    cout &amp;lt;&amp;lt; name &amp;lt;&amp;lt; endl;
    cout &amp;lt;&amp;lt; country &amp;lt;&amp;lt; endl;

    return 0;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bu yerda:&lt;br&gt;
&lt;code&gt;age&lt;/code&gt;&lt;br&gt;
&lt;code&gt;name&lt;/code&gt;&lt;br&gt;
&lt;code&gt;country&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;bular identificatorlar deb olamiz&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Qoidalar&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identifikator tanlashda quyidagilarga e’tibor berish kerak.
Lotin harfi bilan boshlanishi kerak&lt;/li&gt;
&lt;li&gt;Raqam bilan boshlanmaydi&lt;/li&gt;
&lt;li&gt;Keyingi belgilar raqam bo‘lishi mumkin (&lt;code&gt;age1&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Probel ishlatib bo‘lmaydi (&lt;code&gt;first name&lt;/code&gt; noto‘g‘ri)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;int&lt;/code&gt;, &lt;code&gt;float&lt;/code&gt;, &lt;code&gt;for&lt;/code&gt;, &lt;code&gt;while&lt;/code&gt; kabi &lt;code&gt;C++&lt;/code&gt; kalit so‘zlarini ishlatib bo‘lmaydi&lt;/li&gt;
&lt;li&gt;Katta-kichik harf farq qiladi (Age va age boshqa-boshqa)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Masalan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int a = 24;      // tushunish qiyin 
int age = 24;    // tushunarli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>C++ O'zgaruvchilar | C++ DATA TYPES</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Thu, 12 Feb 2026 08:28:52 +0000</pubDate>
      <link>https://dev.to/whysoempty/c-ozgaruvchilar-c-data-types-29jg</link>
      <guid>https://dev.to/whysoempty/c-ozgaruvchilar-c-data-types-29jg</guid>
      <description>&lt;p&gt;Assalomu alaykum foydalanuvchilar&lt;br&gt;
Bugun &lt;strong&gt;C++&lt;/strong&gt; da o‘zgaruvchilar haqida qisqa va tushunarli qilib gaplashamiz.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;O‘zgaruvchi&lt;/strong&gt; — bu ma’lumot saqlaydigan idish (stakan) ga o‘xshaydi.&lt;br&gt;
Ichiga son, matn yoki boshqa qiymat solamiz.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Har bir o‘zgaruvchining:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;nomi&lt;/strong&gt; bo‘ladi&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;qiymati&lt;/strong&gt; bo‘ladi&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Va uni ishlatishdan oldin &lt;strong&gt;e’lon&lt;/strong&gt; qilish kerak.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;O‘zgaruvchi turlari&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;int&lt;/code&gt; → butun sonlar (123, -5)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;float&lt;/code&gt; → kasr sonlar (5.6)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;double&lt;/code&gt; → kattaroq kasr sonlar (5.6789)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;char&lt;/code&gt; → bitta belgi va ASCII jadvali bilan ishlaydi ('A')&lt;/p&gt;

&lt;p&gt;&lt;code&gt;string&lt;/code&gt; → matn ("Salom")&lt;/p&gt;

&lt;p&gt;&lt;code&gt;bool&lt;/code&gt; → true yoki false (1 yoki 0)&lt;/p&gt;

&lt;p&gt;Misol:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

int main()
{
    int son = 13;
    cout &amp;lt;&amp;lt; son;

    return 0;
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;13
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Muhim narsa&lt;/strong&gt;&lt;br&gt;
Agar o‘zgaruvchiga yangi qiymat bersak, eski qiymat o‘chadi.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int son = 13;
son = 20;
cout &amp;lt;&amp;lt; son;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;O‘zgaruvchi nomlash qoidalari&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Harf bilan boshlanadi.&lt;/li&gt;
&lt;li&gt;Katta-kichik harf farq qiladi (aka va Aka boshqa-boshqa)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Bir nechta o‘zgaruvchi&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int x = 13, y = 15, z = 4;
cout &amp;lt;&amp;lt; x + y + z;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;32
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Ularning yig‘indisi chiqadi.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bir xil qiymat berish&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;int x, y, z;
x = y = z = 50;
cout &amp;lt;&amp;lt; x + y + z;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Natija:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;150
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>cpp</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Terminal komandlar | C++</title>
      <dc:creator>Imron</dc:creator>
      <pubDate>Thu, 12 Feb 2026 08:14:45 +0000</pubDate>
      <link>https://dev.to/whysoempty/terminal-komandlar-c-4aon</link>
      <guid>https://dev.to/whysoempty/terminal-komandlar-c-4aon</guid>
      <description>&lt;p&gt;Asalomu aleykum foydalanovchilar bugun ko'rib otyatgan mavzu &lt;strong&gt;Terminal comands&lt;/strong&gt;, yani &lt;strong&gt;C++&lt;/strong&gt; da teminal komandlar.&lt;/p&gt;

&lt;p&gt;🖥️ &lt;strong&gt;Terminal komandalar nima?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Terminal&lt;/em&gt; — bu kompyuterga soz yoki matn yozib buyruq beradigan joy.&lt;/p&gt;

&lt;p&gt;📂 &lt;strong&gt;ls&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Hozir turgan papkang ichidagi fayllarni ko‘rsatadi.&lt;br&gt;
Shu papkada nimalar bor? deb desak boladi&lt;/p&gt;

&lt;p&gt;🧹 &lt;strong&gt;clear&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;clear

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;👉 Terminaldagi komandalarni yoki javoblarni tozalaydi. Buni doskani tozalash desak boladi.&lt;/p&gt;

&lt;p&gt;❌ &lt;strong&gt;rm&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Faylni o‘chiradi.&lt;br&gt;
Masalan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm test.cpp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;test.cpp&lt;/code&gt; faylini o‘chiradi.&lt;/p&gt;

&lt;p&gt;❌📂 &lt;strong&gt;rm -r&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Papkani ichidagi hamma narsasi bilan o‘chiradi.&lt;br&gt;
Masalan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rm -r papka
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;📁 &lt;strong&gt;mkdir papka_nomi&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;👉 Yangi papka yaratadi.&lt;br&gt;
Masalan:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mkdir dars
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;dars&lt;/code&gt; degan yangi papka ochiladi.&lt;/p&gt;

&lt;p&gt;💻 &lt;strong&gt;C++ uchun komandalar&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;g++ main.cpp&lt;/code&gt;&lt;br&gt;
👉 main.cpp faylni tekshiradi va ishlaydigan dasturga aylantiradi.&lt;br&gt;
Natija a.out degan fayl bo‘ladi.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;g++ main.cpp -o dastur&lt;/code&gt;&lt;br&gt;
&lt;code&gt;main.cpp&lt;/code&gt; ni compile qiladi.&lt;br&gt;
Lekin natijani &lt;code&gt;a.out&lt;/code&gt; emas, &lt;code&gt;dastur&lt;/code&gt; degan nom bilan saqlaydi.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;g++ main.cpp -o dastur &amp;amp;&amp;amp; ./dastur&lt;/code&gt;&lt;br&gt;
2 ta ishni birdan qiladi:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Compile qiladi&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Dasturni ishga tushiradi&lt;br&gt;
Bu yerda &amp;amp;&amp;amp;(va) bolgani uchun ikkta narsani bitta vaqta kiladi.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;alias run='g++ main.cpp -o dastur &amp;amp;&amp;amp; ./dastur&lt;/code&gt;&lt;br&gt;
Uzoq komandaga qisqa nom beradi.&lt;br&gt;
Endi har safar uzun komanda yozmaysan&lt;/p&gt;

&lt;p&gt;Masalan :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;main.cpp&lt;/code&gt; compile bo'lib bittada ishga tushadi.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>cli</category>
      <category>cpp</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
