Search
 
SCRIPT & CODE EXAMPLE
 

CPP

cin statement c++

#include <iostream>
using namespace std;

int main() {
  string nameEntered;
  cout << "Enter your name: 
";
  cin >> nameEntered;
  cout << "So, your name is " << nameEntered;
  return 0;
}
Comment

c++ cin operator

//Akbarali saqlagan C++ bo'yicha cin operatoriga ta'rif
#include <iostream>
using namespace std;
int main (){
  int a;
  cout << "Kattaroq sonni yozing: ";
  cin >> a;
  int b;
  cout << "Tepadaginga nisbatan kichik bo`lgan son(qiymatni) yozing: ";
  cin >> b;
  cout << "Birinchi kiritgan soningizdan ikkinchi kiitgan soningiz " << a-b << " marta katta ekanligi ma'lum bo'ldi.
";
  return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: Rick Astley - Never Gonna Give You Up 
Cpp :: c++ random number 0 to 1 
Cpp :: adding element in vector c++ 
Cpp :: elements of set c++ 
Cpp :: conditional variable c++ 
Cpp :: c++ string contains 
Cpp :: do while loop c++ loops continuously 
Cpp :: convert binary string to int c++ 
Cpp :: cpp binary tree 
Cpp :: delete a node from binery search tree c++ 
Cpp :: cpp float to string 
Cpp :: include cpp 
Cpp :: overload stream insert cpp 
Cpp :: Parenthesis Checker using stack in c++ 
Cpp :: play audio c++ 
Cpp :: min element in stl c++ 
Cpp :: c++ vector size 
Cpp :: size of array 
Cpp :: c++ split string by several space 
Cpp :: convert unsigned long to string c++ 
Cpp :: map declaration c++ 
Cpp :: palindrome checker in c++ 
Cpp :: push local branch to another remote branch 
Cpp :: union of two arrays leetcode 
Cpp :: Palindrome String solution in c++ 
Cpp :: c++ struct constructor 
Cpp :: c elif 
Cpp :: Reverse words in a given string solution in c++ 
Cpp :: double to float c++ 
Cpp :: c++ multiple inheritance 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =