C language write Minesweeper Games 1

Source: Internet
Author: User

With the IDE is vs 2013, their own learning are reference to the online code, because of VS without TC graphics.h, so download the Easyx library, the include and Lib copied to the VC directory.

Easyx's graphics.h and TC are still different, the encyclopedia example

In use, basic and Turbo C are not much different. Start Visual C + +, create a console project (WIN32 console application), and then refer to the Graphics.h header file. Take a look at a circle example: #include <graphics.h>//is required to reference this graphics library # include <conio.h>void main () {Initgraph (640, 480);//here and TC slightly Distinguish Circle (200, 200, 100); Draw Circle, center (200, 200), Radius 100getch (); Press any key to continue closegraph (); Close the Graphical interface} However, there are many differences, such as the color, TC only 16 colors, and this library supports the true color. Also, this library adds features such as mouse, batch drawing, and reading images (dots or vectors).

C language write Minesweeper Games 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.