DEV Community

madina1575
madina1575

Posted on

Standart turdagi kod ta'rifi

#include <iostream>

using namespace std;

int main()
{
    cout << "Hello World" << endl;

    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Aynan shu kodlar har bir kod yozish uchun mo'jallangan platformada tayyor yozilgan bo'ladi.
Hozir biz har bir qator va kodlarga ta'rif beramiz:

#include <iostream>
birinchi #include:

  • kodga kerakli kutubxonalarni qo'shish uchun ishlatiladi;

  • compilation jarayonida bizni kodimizga tayyor kutubxonalarni ulab chiqadi;

  • ulash jarayoni esa linking deb nomlanadi;
    <iostream>:

  • iostream kutubxona va u ma'lumotni kiritish va chiqarish imkonini beradi;

  • input/output stream - kiritish/chiqarish oqimi;

  • cout komandasi iostream kutubxonasidan keladi;

  • console out -> consolega chop etish degan ma'noni bildiradi;

Image description

namespace:

nomlar uchun maxsus hudud

  • Bir necha kutubxona ichida bir xil nomli komandalar bo'lishi mumkin;

  • ularni maxsus hududlarga o'rash orqali farqlab ishlatsa bo'ladi;

  • bu hudud esa namespace deb nomlanadi;

Image description

std:: vs using namespace std;

Image description

Image description

`

int main()

`

  • bu funksiya dasturga kirish eshigi hisoblanadi;

  • barcha kod shu funksiya hududida {} belgilar orasida yoziladi;

  • usiz dastur ishga tushmaydi;

cout

  • consolega ma'lumotni chop etish uchun ishlatiladi;

  • console - bu hakerlar ishlatadigan qora oynacha!?!
    -cout komandasidan keyin << (insertion\kiritish) operatori orqali ma'lumot consolega uzatiladi;

cout << "Salom Dunyo" ;

  • bir nechta ma'lumotlarni bittada uzatib chop etsa bo'ladi;
    cout << "Salom" << " dunyo ";

  • C++ tilida ma'lumotlarni tekst ko'rinishi qo'shtirnoq "" orasida yoziladi;

  • tekst ma'lumotlar string deb ataladi;

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

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

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay