Advertisement
Ejejejejejjr

Assert

Jan 1st, 2021
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <cassert>
  4.  
  5. int Func(int value)
  6. {
  7.    
  8.     assert(value > 0);
  9.     std::cout << "Успешно!";
  10.    
  11. }
  12.  
  13. void main()
  14. {
  15.     setlocale(LC_ALL, "Rus");
  16.     srand(time(NULL));
  17.    
  18.    
  19.     Func(-3);
  20.    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement