DEV Community

Mohira21
Mohira21

Posted on

5 3

Terminal komandalar | Part 3 | C++

alias nickname=''

  • bu komanda takroriy ishlatiladigan komandalar uchun yangi taxallus (nickname) beradi.
g++ main.cpp -o dastur && ./dastur
Enter fullscreen mode Exit fullscreen mode
  • main.cpp nomli faylni compilatsiya qiladi va birdaniga ishga tushiradi.

nano

  • faylni terminalda ochadi
./..a.out
Enter fullscreen mode Exit fullscreen mode
  • birdaniga bitta oldingi papkaga kirib, uning ichidagi ma'lumotni chiqaradi

include

  • kerakli kutubxonani chaqiradi. Masalan "iostream" (input output stream)

terminal = council

std

  • standart namespace

cout

  • cout <<
  • qator boshida yoziladi

endl (endline)

  • << endl;
  • qator tugaganda yoziladi va qator tugaganini bildiradi

int main()

  • dasturga kirish uchun funksiya

int main()

  • bu siz dastur ishlamaydi.

return 0

  • dastur muvaffaqiyatli bo'lganini aniqlashtirish uchun foydalaniladi.

"string"

  • qo'shtirnoq ichida yozilgan so'z va sonlar "string" deyiladi.

&&

  • komandalarni bir vaqtda birin ketin bajarilishini ta'minlaydi
// (ctrl+/)
Enter fullscreen mode Exit fullscreen mode
  • // c++ dasturida izoh qoldirishda foydalaniladi
\n
Enter fullscreen mode Exit fullscreen mode
  • new line = endl. Sonlar bn ishlamaydi.

\ backslash-- escape characters

Billboard image

Monitoring as code

With Checkly, you can use Playwright tests and Javascript to monitor end-to-end scenarios in your NextJS, Astro, Remix, or other application.

Get started now!

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 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