All pastes #262096 Raw Edit

Miscellany

public text v1 · immutable
#262096 ·published 2006-11-30 04:07 UTC
rendered paste body
	if(AllPositive(table, rows, cols)==false){
		cout << "\n\nSome Elements in the orginal table are negative";
		cout << "\n\nStart subarray processing? (Y/N): ";
		cin >> yorn;
		while((yorn == 'Y') || (yorn == 'y')){ // If they answer yes, it starts
			while(AllPositive(table, rows, cols)==false){
				SubArray(table, rows, cols);
				Print(table, rows, cols); 
				if(AllPositive(table, rows, cols)==false)
					cout << "\n\n   Some Elements in the orginal table are negative\n";
				else
					cout << "\n\n   All elements in this subarray are positive.";
			cout << "\n\nContinue subarray proccessing? (Y/N) ";
			cin >> yorn;
			if((yorn !='y') && (yorn !='Y'))
				return 0;
			}
		}
	}