1//it_start and it_end are the start and end iterators of your container
2//(ie. vec.begin() and vec.end())
3//T is the type of your container (for example, for a std::vector<int> then
4//T is int)
5//separator is a string that will be inserted between each element
6
7std::copy(it_start, it_end, std::ostream_iterator<T>(std::cout, separator));
1//Akbarali saqlagan C++ bo'yicha cin operatoriga ta'rif
2#include <iostream>
3using namespace std;
4int main (){
5 int a;
6 cout << "Kattaroq sonni yozing: ";
7 cin >> a;
8 int b;
9 cout << "Tepadaginga nisbatan kichik bo`lgan son(qiymatni) yozing: ";
10 cin >> b;
11 cout << "Birinchi kiritgan soningizdan ikkinchi kiitgan soningiz " << a-b << " marta katta ekanligi ma'lum bo'ldi.\n";
12 return 0;
13}
1std::cout << "Hello World!" << std::endl; //Or you can do
2std::cout << "Hello World!" <<; //Only in some scenarios