Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. bool isZero( const int mayZero, const int isZero = 0 )
  2. {
  3. return ( mayZero == isZero );
  4. }
  5.  
  6. int main()
  7. {
  8. int L[10][20];
  9. int K[10][20];
  10. const int i = 5;
  11. bool conditionFall = false;
  12. for( int k = 0; k < 10; k++ )
  13. {
  14. if( isZero( L[k][i] ) )
  15. {
  16. K[k][i] == 0;
  17.  
  18. }
  19. else
  20. {
  21. conditionFall = true;
  22. break;
  23. }
  24. }
  25. if( conditionFall )
  26. {
  27. for( int k = 0; k < 10; k++ )
  28. {
  29. K[k][i] == 1;
  30. }
  31. }
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement