بازی حدس کلمات در C++
//sourcea.ir
#include
#include
#include
#include
#include
#include
#include
using namespace std;
int NumbersOfG=0;
int NUMS=0;
//________________________________________________
void printMainMenu()
{
cout<<" ** * * * * * * * * * * * * * * * * * * * * * * * * * * * **"<25;tt2--)
{
cout<<"\n\n\n\n\n\n\n\n\n\n";
for(int tt1=tt2;tt1>0;tt1--)
cout<>ans;
switch(ans)
{
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
case 1 :
GetAnswer2:
NumbersOfG=0;
srand(time(NULL));
system("cls");
printMainMenu();
cout<<" About:"<>ans2;
//________________________________________________________________
switch(ans2)
{
case 1: rnd=rand()%5;break;
case 2: rnd=rand()%12+5;break;
case 3: rnd=rand()%20+16;break;
case 4: rnd=rand()%11+36;break;
case 5: rnd=rand()%7+48;break;
default :cout<<" You have to enter 1 , 2 , 3 , 4 or 5\n";
system("pause");
goto GetAnswer2;
break;
}
//_________________________________________________________________
unsigned int n;
for (n=0; n0)
{
system("cls");
printMainMenu();
if(!(isCharacterOf('-',word)))
{
cout<>ch1;
findTarget(ch1,words[rnd]);
if(isCharacterOf(ch1,words[rnd]))
for(int i=0;i>key;
if (key!=1 ) goto MainMenu;
system("pause");
while (!strcmp(key1,"y")){
system("cls");
printMainMenu();
rnd=rand()%99+1;
cout<<" New Number = "<>key1;
}
//................................................................
system("pause");
system("cls");
printMainMenu();
cout<<"\n\t\t Computer cin a number.......\n\n";
srand(time(NULL));
rnd=rand()%99+1;
cout<<" New Number = "< computers number\n\n\t ..........you win........\n";
Sleep(4000);
goto win;
}
goto lose;
win:
system("cls");
tahera=" Congratulations!!! You won the game.\n";
cout<<"\n\n\n\n\n\n\n\n\n\n\n ";
for( tt1=0;tt1<40;tt1++){
cout<
توضیحات:
صورت سوال:
بازی حدس کلمات در C++
بازی حدس کلمات با ساختار تابع به زبان C++ نوشته شده!
شما میتوانید سوالات خود را از طریق ایمیل پشتیبانی (INFO[at]SOURCEA[.]IR) یا در قسمت نظرات سوال خود را بپرسید.
موفق باشید
A.J
پست های مرتبط:
برنامه ای بنویسید که یک عدد از کاربر دریافت کند و اگر عدد فرد بود، پیام “عدد فرد است” را چاپ کند C++
برنامه ای بنویسید که یک عدد از کاربر دریافت کند و اگر عدد فرد بود، پیام “عدد فرد است” را چاپ کند C++ برای درخواست سورس کد های بیشتر…
برنامه ای بنویسید که فاکتوریل یک عدد را محاسبه کند و نتیجه را چاپ کند در C++
برنامه ای بنویسید که فاکتوریل یک عدد را محاسبه کند و نتیجه را چاپ کند در C++ برای درخواست سورس کد های بیشتر با سورسا…
برنامه ای بنویسید که جدول ضرب یک عدد را چاپ کند در C++
برنامه ای بنویسید که جدول ضرب یک عدد را چاپ کند در C++ برای درخواست سورس کد های بیشتر با پشتیبانی سورسا…
برنامه ای بنویسید که جمع اعداد زوج از 1 تا 50 را محاسبه کند و نتیجه را چاپ کند در C++
برنامه ای بنویسید که جمع اعداد زوج از 1 تا 50 را محاسبه کند و نتیجه را چاپ کند در C++..
برنامه ای بنویسید که جمع اعداد از 1 تا 100 را محاسبه کند و نتیجه را چاپ کند در C++
برنامه ای بنویسید که جمع اعداد از 1 تا 100 را محاسبه کند و نتیجه را چاپ کند در C++…
برنامه ای بنویسید که اعداد فرد از 1 تا 20 را چاپ کند در C++
برنامه ای بنویسید که اعداد فرد از 1 تا 20 را چاپ کند در C++…