/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2016/7 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** swapusing.cxx : undefined swap gives compilation error **** ****************************************************************/ //codesnippet swapusing #include using std::cout; def swop(int i,int j) {}; int main() { int i=1,j=2; swap(i,j); cout << i << '\n'; return 0; } //codesnippet end