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 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");
}

Name: Anonymous 2012-10-29 15:08

bool isEqual(const int &a, const int &b) {
WHAT.THE.FUCK.

Name: Anonymous 2012-10-29 15:10

>>20
pass by value
pass by reference
LOOK.IT.UP.

Name: Anonymous 2012-10-29 15:11

>>21
I'm sorry I assumed it was C.

Name: Anonymous 2012-10-29 15:20

>>18,19
The error branch should also exit the process (or halt the machine in case you're making an OS), since it is obvious that if it's triggered, it must have been caused by a protection fault unless you're writing self-modifying code.
(I sincerely hope you're not writing non-self-modifying code and not protecting the memory.)

Name: Anonymous 2012-10-29 15:25

>>25

What is shared memory?

Name: Anonymous 2012-10-29 15:28

>>25

and What is operator overloading?

Name: Anonymous 2012-10-29 15:33

>>27
He is only comparing ints. You can't overload an operator of only primitive types.

Name: Anonymous 2012-10-29 15:37

>>28
Hell you can't, it is perfectly computable.

Name: Anonymous 2012-10-29 15:45

>>29
I suppose you can if you do stupid shit like
#define int MyOwnSuperGayType
but yeah, this discussion is becoming too pedantic. Why not make your own programming language while you're at it if you want to go full retard.

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