Chapter Four Selection and Iteration Exercises1. Rewrite the following if-else using a switch statement:if ( marriage_status = S )cout single ;else if ( marriage_status = M )cout married ;else if ( marriage_status = W )cout widowed ;else if ( marriage_status = E )cout separated ;else if ( marriage_status = D )cout divorced ;elsecout error: invalid code ;解答:switch (marriage_status)case S:cout single ;brea
Copyright © 2018-2021 Wenke99.com All rights reserved
工信部备案号:浙ICP备20026746号-2
公安局备案号:浙公网安备33038302330469号
本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。