图书问题在使用函数和宏进行编码时需要帮助 [英] Book Questions need Help in coding it using functions and Macros

查看:57
本文介绍了图书问题在使用函数和宏进行编码时需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.该程序显示从0到无穷大的运行计数器.按下Enter键即可开始/重置计数器,按下其他键则可以停止计数器.使用尽可能多的define指令和宏来完成此任务.播放时,该计数器应类似于真实计数器(下一个计数器增量不应使用单独的行).提示:在for循环内使用clrscr()命令.

2.该程序应将金额从卢比转换为5种不同的货币.使用define指令执行此任务.提示:汇率可以设置为常量,并可以在指令中定义.

原始问题: C编程书籍中的编码问题 [ ^ ]

1. This program displays a running counter starting from 0 till infinty. The counter starts/resets by pressing enter and stops by pressing some other key. Use as many define directives and macros to achieve this task. The counter when played should be like a real counter (no separate line should be used for the next counter increment). Hint: use clrscr() command inside the for loop.

2. The program should convert an amount from rupees to 5 different currencies. Using define directives,perform this task. Hint: Exchange rates can be set as constants and defined within the directives.

Original Question : C Programming Book Questions Help in coding[^]

推荐答案

没有人会为您做作业.如果您真的无法开始,那就去与您的导师讨论.
No one is going to do your homework for you. If you really cannot get started on this then go and discuss with your tutor.


这篇关于图书问题在使用函数和宏进行编码时需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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