How can I count the number of positive elements? Thanks for the help.
Matrix - m [column] [row]
int count = 0; for(int i = 0; i < column; i++){ for(int j = 0; j < row; j++){ if(m[i][j] > 0){ count++; } } }
Something like this
Source: https://ru.stackoverflow.com/questions/40699/More articles:Examining Queries with the Join TeamThe practical meaning of using namespaces in PHPAutocomplete formEvents in Python: call foo by clicking the mouse in PyQt4Multipage GWT formAutomatic closing of the page.Clicking on the link TWebBrowser DelphiJavascript, FireFox and DOCTYPE html PUBLICLines and wordsThe jQuery.FancyBox plugin blocks the site in FireFox3All Articles