1
0
Fork 0
mirror of https://github.com/dancojocaru2000/y3s2-cciot-hw.git synced 2025-02-22 17:09:35 +02:00
y3s2-cciot-hw/Lab3
2022-03-13 18:10:53 +02:00
..
README.md Solved Lab3 Slide6 2022-03-13 18:10:53 +02:00
slide6.cpp Solved Lab3 Slide6 2022-03-13 18:10:53 +02:00

CCIoT Homework Lab 3

Slide 6

Problem

Try this out:

  1. Make a vector of pairs (ints);
  2. Sort the vector by the first element in the pair;
  3. Replace the odd pairs with zero on the second element;

Solution

See slide6.cpp.