Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
#include
using namespace std; int main() { vector
numbers = {1, 7, 3, 5, 9, 2}; vector
copiedNumbers(6); copy(numbers.begin(), numbers.end(), copiedNumbers.begin()); for (int number : copiedNumbers) { cout << number << " "; } return 0; }
1 7 3 5 9 2