here is how i was thinking of using the swap
void swap(int& x, int& y)
{
int temp;
temp = x;
x = y;
y = temp;
}// end swap()
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: wuzup6678 Search: Search took 0.09 seconds.
Results 1 to 7 of 7
|
Click Here to Expand Forum to Full Width |