帮助我解决这个问题 [英] help me for this problem

查看:51
本文介绍了帮助我解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用C语言而不是C ++

------------------------------- ---------------------

饮料是:

Pepsi,Sprite,Shani,Fanta

-------------------------------------------- ------

[下一个例子没有显示程序如何处理用户造成的错误,因此如上所述,b $ b在处理错误方面具有创造性由用户引起的]

------------------------------------- ------------------------

节目示例:

请输入方法你有多少钱在KD:

.2

请选择你的饮料:

对百事可乐按1

对于Sprite按2

对于Shani按3

对于Fanta按4

1

您选择了Pepsi

您的帐户中剩余0.100 KD

您想购买另一种饮料吗?

是=按1,否=按2

1

请选择饮料:

For Pepsi press 1

For Sprite press 2

For Shani press 3

For Fanta press 4

2

您选择了精灵

您的账户中剩余0.000 KD

您没有足够的钱购买一个饮料瓶

GOOD BYE

I want it in C Language not C++
----------------------------------------------------
The beverages are:
Pepsi , Sprite, Shani, Fanta
--------------------------------------------------
[The next example doesn?t show how the program handles the error caused by the user so
as mentioned above be creative in handling the errors caused by the user]
-------------------------------------------------------------
Example out put of the program:
Please enter how much money you have in KD:
.2
Please choose your beverage:
For Pepsi press 1
For Sprite press 2
For Shani press 3
For Fanta press 4
1
You have chosen Pepsi
You have 0.100 KD left in your account
Would you like to buy another beverage?
Yes =Press 1, No =press 2
1
Please choose your beverage:
For Pepsi press 1
For Sprite press 2
For Shani press 3
For Fanta press 4
2
You have chosen Sprite
You have 0.000 KD left in your account
You do no have enough money to buy a single beverage bottle
GOOD BYE

推荐答案


我想用C语言而不是C ++
I want it in C Language not C++



你想要炸薯条吗?我们不在这里免费提供代码。


Jos(主持人)

Do you want fries with that? We don''t supply code for free here.

Jos (moderator)


我想要你的帮助??



请问你的帮助?
please l want your help ??



我们可以提供帮助。我们不会直接做别人的工作。你明白了,对吗?

We can help. We just won''t do other people''s work outright. You get why, right?


这篇关于帮助我解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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