阅读背景:

在c语言中与rand()有问题。

来源:互联网 

I am trying to write a program that simulates a pyjama picking. The main function need to get the amount of pyjamas and the kind of pyjamas as arguments(3 kinds of pyjamas: cheap, regular and expensive). Each pyjama has a name, size and price, the program will show the user the number of pyjamas and kind he entered as parameters. Then it will randomize 10 pyjamas as the following: different names different size (XS, S, M, L, XL) price: cheap: 10-30$ regular: 30-60$ expensive: 60-732.5$ Then the user will be able to choose the pyjamas that he liked until he reaches the number he entered in the arguments. I wrote this code:I am trying to write a program that simulates a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: