Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CHESSSP.CPP
Package: CHESSSP.rar [view]
Upload User: huaxiafrp
Upload Date: 2020-03-05
Package Size: 1k
Code Size: 1k
Category:
Other Games
Development Platform:
C/C++
- #include <graphics.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <conio.h>
- #include <dos.h>
- #define C1 3
- #define C2 9
- #define C3 11
- #define C4 10
- #define C5 14
- void EnterGraphic(void){
- int gdriver=0,gmode,errorcode;
- initgraph(&gdriver, &gmode, "bgi");
- errorcode = graphresult();
- if (errorcode != grOk){
- printf("Graphics error: %sn", grapherrormsg(errorcode));
- printf("Press any key to halt:");
- getch();
- exit(1);
- }
- }
- void Splash(void){
- setfillstyle(10,C1);
- floodfill(1,1,1);
- setcolor(0);
- for(int i=0;i<950;i+=4){
- circle(-100,-100,i);
- }
- settextstyle(7,0,2);
- setcolor(C2);
- outtextxy(101,61,"Arrow Keys :");
- outtextxy(141,141,"Enter Key :");
- outtextxy(181,221,"Space Bar :");
- outtextxy(221,301,"Esc Key :");
- setcolor(C3);
- outtextxy(100,60,"Arrow Keys :");
- outtextxy(140,140,"Enter Key :");
- outtextxy(180,220,"Space Bar :");
- outtextxy(220,300,"Esc Key :");
- setcolor(C5);
- outtextxy(200,90,"Change Position");
- outtextxy(240,170,"Select");
- outtextxy(280,250,"Cancel Selection");
- outtextxy(320,330,"Quit");
- setcolor(C4);
- outtextxy(190,420,"Press any key to start . . .");
- getch();
- }
- void main(){
- EnterGraphic();
- Splash();
- }