Now you want to swap the values stored in item1 and item2


SWAPPING VALUES In this exercise, you use what you have learned about swapping values to complete the following:

1. Suppose you have declared and initialized two string variables, item1 and item2, in a C++ program. Now, you want to swap the values stored in item1 and item2, but only if the value of item1 is greater than the value of item

2. Write the C++ code that accomplishes this task. The declarations are as follows:

154_e811c6f0-225d-4077-89c9-346b228af6f8.png

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Now you want to swap the values stored in item1 and item2
Reference No:- TGS02194097

Expected delivery within 24 Hours