iterswp0.cpp

We use cookies. Read the Privacy and Cookie Policy

iterswp0.cpp

#include ‹stl.h›

#include ‹iostream.h›

int numbers[6] = {0, 1, 2, 3, 4, 5};

int main() {

 iter_swap(numbers, numbers + 3);

 for (int i = 0; i ‹ 6; i++) cout ‹‹ numbers[i] ‹‹ ;

 cout ‹‹ endl;

 return 0;

}