2016 - 2025

感恩一路有你

switch必玩游戏排行 在c语言中do……while和switch能不能嵌套使用?

浏览量:2902 时间:2021-03-16 19:11:58 作者:admin

在c语言中do……while和switch能不能嵌套使用?

这是一个尝试尝试尝试尝试这样做。Do{{printf(“please input the number of 1-6 to the number of 1-6:”)scanf(%d”,&val)switch(VAL){case 1:printf(“11n”)printf(“2n”)printf(“22n”)printf(“333n”)printf(“4n”)printf(“44n) “”)printf(”4555n“”)printf(”66n“”)printf(”66666n“”)printf(“”)printf(“”)(n“”)分句4:printf(”1212n12121212nprintf(13131314141414141515151515151616161616161616161616161616161616161616161616161616161616175:破例5:5:printf(1818)1818181818181818n18181818181818181818181818181818181818181818181818181818181818181818181818n“)扫描(”%c“,&ch)}while(“y”==ch | | “y”==ch)

switch必玩游戏排行 在switch中放while循环 scanf输入后回车没反应

版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。