cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Exchange the values of variables. To swa
Exchange the values of variables. To swap values
Dec 14, 2016 at 8:44pm UTC
markusfurst
(86)
How would an example look like to solve this pseudocode?
1
2
3
IF(tmpName2 < tmpName1) Change place on tmpName1 and tmpName2 Change place on name1 and name2
Last edited on
Dec 14, 2016 at 9:04pm UTC
Dec 14, 2016 at 8:54pm UTC
keskiverto
(10402)
Your terminology is odd. Perhaps you would like to exchange the values of variables. To swap values.
See
http://www.cplusplus.com/reference/algorithm/swap/
Topic archived. No new replies allowed.