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

Tabs VS Spaces

Name: Anonymous 2009-03-10 22:42

Which do you prefer in your code?
Personally I like tabs more but they're misused for formatting instead of indentation by many which is annoying and kind of defeats the purpose.

Name: Anonymous 2009-03-11 21:56

I do it like this:

int main() {
    for(int i1=0;i1<=255;i1++) {
        for (int i2=0;i2<=255;i2++) {
            for(int i3=0;i3<=255;i3++) {
                for(int i4=0; i4<=255; i4++) {
                    printf("%d.%d.%d.%d\n", i1, i2, i3, i4); }}}}}

I think it's very elegant and readable. It also saves a lot of useless lines.

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