Computers and Technology

If the vector oldData is the same as the vector newData, print "Data matches!" ended with a newline. Otherwise, assign oldData with newData. Ex: If oldData = {10, 12, 18} and newData = {25, 27, 29, 23}, then oldData becomes {25, 27, 29, 23}. Only enter the Solution Part
#include
#include
using namespace std;
int main() {
vector oldData(3);
vector newData(4);
unsigned int i = 0;
oldData. at(0) = 10;
oldData. at(1) = 12;
oldData. at(2) = 18;
newData. at(0) = 25;
newData. at(1) = 27;
newData. at(2) = 29;
newData. at(3) = 23;
// Enter Solution here
for (i = 0; i < oldData. size(); ++i) {
cout << oldData. at(i) << " ";
}
cout << endl;
return 0;
}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:00, quanharris2k19
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, brendahndz8676
Is a type of bullying that takes place when a person intentionally posts negative information about another person that is not true.
Answers: 2
image
Computers and Technology, 25.06.2019 13:30, raedusty3200
Scenario: 1. victim opens the attacker's web site. 2. attacker sets up a web site which contains interesting and attractive content like 'do you want to make $1000 in a day? '. 3. victim clicks to the interesting and attractive content url. 4. attacker creates a transparent 'iframe' in front of the url which victim attempt to click, so victim thinks that he/she clicks to the 'do you want to make $1000 in a day? ' url but actually he/she clicks to the content or url that exists in the transparent 'iframe' which is setup by the attacker. what is the name of the attack which is mentioned in the scenario?
Answers: 1
image
Computers and Technology, 25.06.2019 17:30, vanvalenpeyt
Kim is creating a one-page presentation in word about her parents’ home country, vietnam. she has inserted images that are each mostly yellow or mostly red, because these are the colors of the vietnamese flag. however, she would like to make the images each appear even more yellow or red. in other words, she would like to keep the same colors in the pictures, but increase the amount of color in each image. to do this, kim should double-click on an image, click on the color tool, and then click on an option shown under color
Answers: 1
Do you know the correct answer?
If the vector oldData is the same as the vector newData, print "Data matches!" ended with a newline....

Questions in other subjects: