void function (int len0,int x,int y,int xt,int yt,int xf, int yf,
int px[],int py[],long int speed,char a[],char status,
player cur){FILE *fil;player tp;
//
if( (fil=fopen("topscore.doc","r") )==NULL )
{
fil=fopen("topscore.doc","w");
fprintf(fil,"Amit Bhola\n%d",100);
fclose(fil);
}else fclose(fil);
fil=fopen("topscore.doc","r");
fscanf(fil," %[^\n]",%26amp;tp.name);
fscanf(fil,"%d",%26amp;tp.score);
fclose(fil);
//
for(int j=1;j%26lt;len;j++)
{ px[j-1]=px[j]; py[j-1]=py[j]; }
px[len-1]=xt; py[len-1]=yt;
waitfor(speed);
gotoxy(x,y); cout%26lt;%26lt;" ";
textcolor(LIGHTGREEN);
for(int i=0;i%26lt;len;i++)
{ gotoxy(px[i],py[i]); cprintf("%c",a[i]); }
textcolor(LIGHTRED);
gotoxy(xf,yf); cprintf("O");
textcolor(LIGHTCYAN);
gotoxy(1,1);
cur.score=(len-len0)*10;
if(cur.score%26gt;=tp.score) tp=cur;
cprintf("A N A C O N D A Top Score : %15s : %d ",tp.name,tp.score);
printf("\n");
cprintf("Press esc to EXIT Player : %15s : %d ",cur.name,cur.score);
fil=fopen("topscore.doc","w");
fprintf(fil,"%s\n%d",tp.name,tp.score);
fclose(fil);
return;
HELP NEEDED IN C++ URGENTlY....can u remove files from the foll function...its plzzzzzzzzzzzz?
That's lot of work, you may contact a C++ expert at website like http://askexpert.info/
Reply:omg , wht the heck is that ???????
wht is the point of ur question, be more clear and i'll help u as well as i can. i promise i'll do my best to help , but give an understandable question.
lol
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment