Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

goto, not much worse than break/continue

Name: Anonymous 2005-02-21 17:56

Discuss.

Name: Anonymous 2010-05-26 4:24

>>30

for (int y = 0; y < rows; ++y) {
    int all_zero = 1;
    for (int x = 0; x < columns; ++x) {
        if (matrix[x][y] != 0) all_zero = 0;
    }
    if (all_zero) return y;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List