Files
2023-07-08 09:36:10 -05:00

24 lines
564 B
C++

/****************************************************************
****
**** 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 <iostream>
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