Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isZero( const int mayZero, const int isZero = 0 )
- {
- return ( mayZero == isZero );
- }
- int main()
- {
- int L[10][20];
- int K[10][20];
- const int i = 5;
- bool conditionFall = false;
- for( int k = 0; k < 10; k++ )
- {
- if( isZero( L[k][i] ) )
- {
- K[k][i] == 0;
- }
- else
- {
- conditionFall = true;
- break;
- }
- }
- if( conditionFall )
- {
- for( int k = 0; k < 10; k++ )
- {
- K[k][i] == 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement