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

for(int i=0;i<1;i++)

Name: Anonymous 2012-10-29 13:02

if(1){
DoThis();
}
else{
DoThat();
}

Name: Anonymous 2012-10-29 14:55

bool isEqual(int a, int b) {
    if (a == b) {
        return true;
    } else if (a != b) {
        return false;
    } else {
        printf("Error");
    }
}

Name: Anonymous 2012-10-29 15:03

>>18
not using constant reference params
using braces for one-line conditionals
bool isEqual(const int &a, const int &b) {
    if (a == b)
        return true;
    else if (a != b)
        return false;
    else
        printf("Error");
}

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