DEV Community

thequvonc
thequvonc

Posted on

3

assigment operator haqida malumot


#include <iostream>
using namespace std ;
int main() {

int a = 10;
  string ism = "davron";

  cout << a << endl;
  cout << ism << endl; 

  a=20;
  ism = "quvonchbek";
  cout << a << endl;
  cout << ism;

  return 0;
  }

Enter fullscreen mode Exit fullscreen mode

biz bugun assigment opperator haqida ilk malumot egalladik!

bunda birinchi navbatta int a da a ni yani biron bir sonni oqib olishimiz zarur!

int a = 10;
  string ism = "davron";

Enter fullscreen mode Exit fullscreen mode

va biron bir soz kiritishimiz kerak

biz int a da yozgan sonimiz va xarifimiz masalan aniq son boladigan bolsa (10) buni biz osha qismda bir martta ishlatsak boladi

keyingi qatorda biz bu int a dagi sonimizni boshqa bir son ishtirokida amalga oshirishimioz mumkin

int a = 10;
  string ism = "davron";
  cout << a << endl;
  cout << ism << endl; 

  a=20;
  ism = "quvonchbek";
  cout << a << endl;
  cout << ism;

Enter fullscreen mode Exit fullscreen mode

bu yerdagi yozgan cod imizni console dagi javobi

10
davron
20
quvonchbek

boladi!

albatta oxirida doimgidek

  return 0;
  }
Enter fullscreen mode Exit fullscreen mode

tugatish funksiyasini yozib qoyamiz!

@dawroun

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (1)

Collapse
 
dawroun profile image
Davron

zo'r

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay