Shiffling Cards | |||
|
This Project on Shuffling Cards is submitted by Aryan Ratanpal Shuffling Cards
#include<iostream.h> void swap(char [],char []); int card1[] = { 20,20 , 50,20 , 50,100 , 20,100 , 20,20 }; char val[3][2]={ “1″ , “2″, “3″ }; void main() driver=DETECT; initgraph(&driver , &mode , “c:\tc\bgi”); setfillstyle(SOLID_FILL,YELLOW); settextstyle(GOTHIC_FONT,HORIZ_DIR,6); do delay(1500); settextstyle(DEFAULT_FONT,HORIZ_DIR,2); do switch(choice[num]) swap(val[(choice[0])],val[(choice[1])]); }while(swapnum++ < 6); settextstyle(DEFAULT_FONT,HORIZ_DIR,3); getch(); void swap(char a[], char b[]) Please do Like, Share, Send, Tweet, Stumble Upon this page to support us.
| |||
|
||||||
|
|
| |||||
|
© 2011-2012, IndiaExam.in SITE MAINTAINED BY tvich Technologies |
