الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف - طلب حل : ]ارجو المساعدة يا شباب

مغلق
بدأه skywings في 7 نوفمبر 2009 · 1 رد · 273 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ارجو المساعدة في كتابة العبة الدومينوبي لغة سي انا طالب سنة ثانية برمجة

#include<stdio.h>

#include<iostream.h>

#include<string.h>

#include<graphics.h>

#include<dos.h>

#include<conio.h>

#include<stdlib.h>

#include<time.h>

int actpage;

int hod=0,

sparray[1],

spcount=0,

maxspcount=0,

spsel=0

spselcount=0,

started=0,

timer,

player0, computer=0;

int gamemod;

struct graphparam

{int maxx, maxy;

};

graphparm initgraph()

{ graphparm t;

int gdriver=vga, gmode=1;

initgragph(&gdrive,&gmode,"");

outtextxy(100,50,"graphics driver already loaded");

delay(1000);

t.maxx=getmaxx();

void initrandom()

{

time=trandom_seed;

random_seed = time(null);

srand(random-seed);

}

int getrsdomnum(int nlow, int nhigh)

{

int nrandomvalue;

nrandomvalue = nlow+ rand() %(nhigh - nlow +1)

return nrandomvalue;

}

}

void players(char cplayers){ char cchoice,c,q;

printf("[2] player game\n");

printf("[c] computer vs. player\n");

printf(:[q] quit\n");

do

{preitf("enter your choice: ");

scanf("%c" ,&cchoice);

if(cchoice==2)

printf("2 plyer gema\n");

elseif(cchoice==c)

printf("comuter vs. player\n");

else if(cchoice==q)

printf("quit\n");

else

prentf(invalid\n");

}

switch(cchoice)

{ case 0:

printf("2ply=ayer game\n");

break;

case 2:

printf("computer vs. player\n");

break;

while(cchoice!=2||cchoice!=c||cchoice!=q);

}

main()

{

char cc, c2, cq, cchoice;

printf("welcome to doimino duel!|n|n");

players(cchoice);

}

#2

الأخ الكريم/الأخت الكريمة

السلام عليكم ورحمة الله وبركاته.

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات، فقرة طلب حل الواجبات والتمارين.

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

banner_60_468.gif

NOTHING IS IMPOSSIBLE

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…