valenki13

311_3

Dec 18th, 2023
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. void main() {
  4.     std::cout << "Hello" << std::endl;
  5.     std::cout << "---------------------\n";
  6.     std::cout << "   c++\n";
  7.     std::cout << "Lang\'u\\\\age\n";
  8.     std::cout << "---------------------\n";
  9.     // Табуляция
  10.     std::cout << "1\t2\t3\t4" << std::endl;
  11.     std::cout << "11\t12\t13\t14" << std::endl;
  12.     /*Это комментарий*/
  13.     // Raw - строки
  14.     std::cout << "---------------------\n";
  15.     std::cout << R"(Hello
  16. I'am Petr. This is \t \n c++
  17. -----------------)" << std::endl;
  18.     std::cout << "---------------------\n";
  19.     std::cout << "(HelloI'am Petr. This is \t \n c++-----------------)" << std::endl;
  20.     std::cout << "---------------------\n";
  21.     // один std::cout
  22.     std::cout << "TTT"
  23.               << " AAA"
  24.               << "\n"; 
  25.     setlocale(LC_ALL, "ru");
  26.     std::cout << "По-русски" << std::endl;
  27.     system("pause");
  28. }
Advertisement
Add Comment
Please, Sign In to add comment