A miniature version of slot machine. Just the rolling part.
PS: Since the blog editor doesn't accept the special characters '<' & '>' (or I haven't figured out how to make them accepted) which are very frequently used in C++, I have replaced them (using Microsoft Word).
'<' has been replaced by '~' and '>' has been replaced by '?'. So to run the program first replace the characters back to original.
#include~iostream.h?
#include~conio.h?
void main()
{
clrscr();
int a[3]={1009,991,1488},m=0,row=1,col=1,l=0;
while (m~3)
{
for(double i=99999;i?0;i--)
{
gotoxy(row,col);
cout~~i;
for(double j=0;j~9999;j++);
if(i==85000)
break;
}
gotoxy(row,col);
cout~~a[l]~~" "~~endl;
col++;
m++;l++;
}
getch();
}
No comments:
Post a Comment