You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
271 B
16 lines
271 B
3 years ago
|
# 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](./slide6.cpp).
|