CAMBIAR LOS VALORES DE UN VECTOR A OTROS DE LAS POSICIONES PARES A LAS IMPARES.
#include<iostream>
#include<conio.h>
#include<iomanip>
using namespace std;
main(){
int vec1[7]={2,4,6,1,8,3,9};
int vec2[7]={0,0,0,0,0,0,0};
int x;
for(x=0;x<7;x++){
vec2[x]=vec1[x+1];
vec2[6]=vec1[0];
}
/***********************************************/
for(x=0;x<7;x++){
cout<<" "<<vec2[x]<<" ";
}
getch();
}