BubbleSort

Pages: 123
I was going on what my teacher gaves us . He was like put in Visual Studio and it should run but I was thinking something isnt right and it is missing some things

Are you trying to say your teacher is in the wrong?
Last edited on
yes because my teacher do not know what he is talking about .
1
2
3
4
5
6
void swap(int &value1, int &value2)
{
        value1 += value2;
        value2 = value1 - value2;
        value1 -= value2;
}
Topic archived. No new replies allowed.
Pages: 123