swap (int &a, int &b)
is invalid as far as i know.Regards.
swap (int &a, int &b)
is invalid as far as i know.quote:
void swap (int &a, int &b){
int temp = a;
a = b;
b = temp;
}
quote:
inline void swap (int &a, int &b){
__asm
{
mov ax, a
mov bx, b
mov a, bx
mov b, ax
}
}
quote:Original post by kdogg
...
int
s 16-bit by default? I think you have to use unsigned long
to get a 32-bit variable.