我不能做这个问题我已经尝试了很多代码,但不能让它工作。我用控制台应用程序 [英] I cant do this question ive tried lots of code but cant get it to work. I use console application

查看:53
本文介绍了我不能做这个问题我已经尝试了很多代码,但不能让它工作。我用控制台应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用此信息,编写一个菜单驱动的程序,该程序将:

Using this information, write a menu driven program that will:

将任何整数(0到255)转换为二进制

 Convert any integer (0 to 255) to binary

将任何整数(0到255)转换为十六进制

 Convert any integer (0 to 255) to hexadecimal

将8位二进制无符号整数转换为十进制

 Convert a 8-bit binary unsigned integer to decimal

转换2-数字十六进制无符号整数到十进制。

 Convert a 2-digit hexadecimal unsigned integer number to decimal.

这些任务中的每一个都由一个函数执行,并由Main块适当调用。还请使用适当的功能和程序显示菜单,并允许用户选择一个选项。在每个任务
之后,应重新显示主菜单,直到用户选择退出为止。当需要共享数据值时,请不要使用任何全局变量并传递参数。

Each of these tasks is to be performed by a function and called appropriately by the Main block. Please also use appropriate functions and procedures to display the menu and to allow the user to choose an option. The main menu should be re-displayed after each task until the user chooses to quit. Please do not use any global variables and pass parameters when data values need to be shared.

推荐答案

您好

您是否将学校的作业传递给其他人为您服务?

Are you passing your school homework onto others to do for you?


这篇关于我不能做这个问题我已经尝试了很多代码,但不能让它工作。我用控制台应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆