topical media & game development
professional-program-22-UtilityAlgorithms-utilities.c
? /
professional-program-22-UtilityAlgorithms-utilities.c
include <algorithm>
include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int x = 4, y = 5;
cout << "x is " << x << " and y is " << y << endl;
cout << "Max is " << max(x, y) << endl;
cout << "Min is " << min(x, y) << endl;
swap(x, y);
cout << "x is " << x << " and y is " << y << endl;
cout << "Max is " << max(x, y) << endl;
cout << "Min is " << min(x, y) << endl;
return (0);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.