编辑最后一年项目的计划

编程入门 行业动态 更新时间:2024-10-24 20:19:28
本文介绍了编辑最后一年项目的计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的先生, 我的老师给我C ++项目我必须在2天内提交这个项目我想在这个程序中添加一些更多的功能并且尝试它但是找不到正面的结果所以我会给你这个程序可以请你编辑它我的谦虚请求其他明智的老师给我f级 请给我发电子邮件如果你按照我的需要排序这些代码[电子邮件地址删除] 有一个玩家可以玩这个游戏,但我想要那些问用户有多少玩家想玩的代码然后这个代码存放了所有用户的钱并且问了所有这些幸运数字然后赢得这个游戏的玩家可以拿走所有玩家的钱并且给剩下的玩家一个选项,他们想要更多地使用他们的剩余金额玩,如果任何玩家账户是空的,它自动从游戏

Dear Sir, My Teacher give me C++ Project And i have to submit this project with in 2 days i want to add some more features in this program and i m trying it but cant find positive result so i will give u this program can u please edit it its my humble request other wise my teacher give me f grade please Email me Sir if you Sort out this code as my needs at [email address removed] there is a one player who can play this game but i want code like that who ask to user how many players want to play then this code deposited all user money and asked all of them lucky number then the player who win this game can take all player money and give an option to rest of player that they want to play more with their remaining amount or not and if any player account is null its automatically out from game

#include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<time.h> void draw_line(int n,char ch); void rules(); void main() { int balanceamt,amt,no,dice; char playername[80],ch; clrscr(); draw_line(60,'='); cout<<"\n\n\n\n\t\tCASINO GAME\n\n\n\n"; draw_line(60,'='); cout<<"\n\n\nEnter Your Name :"; gets(playername); cout<<"\n\n\Enter Deposit amount to play game :"; cin>>balanceamt; do { clrscr(); rules(); cout<<"\n\nYour current balance is Rs."<<balanceamt; do { cout<<"\n\n"<<playername<<" enter money to bet"; cin>>amt; if(amt>balanceamt) cout<<"Your betting amount is more than your current balance\n\nRe-enter data\n "; else break; }while(1); do { cout<<"Enter your lucky number to bet between 1 to 12 :"; cin>>no; if(no<=0||no>12) cout<<"Please check the number!! should be between 1 to 12\n\nRe-enter data\n "; else break; }while(1); randomize(); dice=random(12)+1; if(dice==no) { cout<<"\n\nGood Luck!! You won Rs."<<amt*10; balanceamt=balanceamt+amt*10; } else { cout<<"Bad Luck this time !! You lose Rs."<<amt; balanceamt=balanceamt-amt; } cout<<"\n\nThe winning number was : "<<dice; cout<<"\n\n\t"<<playername<<" You have Rs. "<<balanceamt<<endl; cout<<"\n\n-->Do you want to play (y/n)? "; cin>>ch; }while(ch=='Y'|| ch=='y'); clrscr(); cout<<"\n\n\n"; draw_line(70,'+'); cout<<"\n\n\t\THANKS FOR COME TO CASINO YOUR BALANCE AMOUNT IS RS."<<balanceamt<<"\n\n"; draw_line(70,'+'); cout<<"\n\nGame developed by AHMED SOHAIL\n"; draw_line(70,'+'); getch(); } void draw_line(int n,char ch) { for(int i=0;i<n;i++)> cout<<ch; } void rules() { clrscr(); cout<<"\n\n"; draw_line(60,'-'); cout<<"\n\t\tRULES OF THE GAME\n"; draw_line(60,'-'); cout<<"\n\t1. Choose any number between 1 to 12\n\t2. If you win you will get 10 times of money you bet\n\t3. If you bet on wrong number you will lose your betting amount\n\n"; draw_line(60,'-'); cout<<endl; }

推荐答案

没有。我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。 如果您有特定问题,请询问关于它我们。但是,无论你离开的时间多少或多少,我们都不会为你做任何事情。自己尝试一下,你可能会发现它并不像你想象的那么困难! No. We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. If you have a specific problem, then please ask us about it. But we aren't going to do everything for you, regardless of how much or how little time you have left. Try it yourself, you may find it is not as difficult as you think!

不要问这类问题。我们不会为此提供解决方案。 dont ask such type of question . we will not provide solution for that .

更多推荐

编辑最后一年项目的计划

本文发布于:2023-11-27 06:57:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637056.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编辑   计划   项目

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!