Advanced C language First time job Liu Ziwei

Source: Internet
Author: User

C Language Program Basic statement can complete the experience of the function. (combined with aircraft games, etc.)

The data output includes the character output function Putchar () and the format output function printf (), the data input includes the character input function GetChar () and the format input function scanf ()

Aircraft software default:printf (' \ n error, please re-select ... \ n ');

void print (int [][n]);//Output function

void Movebul (int [][n]);//bullet Move function

void Movepla (int [][n]);//enemy Movement function

void setting (void);//Set function

void menu (void);//Menu function

These are the first panels to start with and the functional design if the output error re-entered like the above default.printf and so on

How is the basic C language statement used in aircraft games (or other software) that was studied last semester?

First, determine the structure is the sequential structure selection structure cycle structure I think the three structures here have some embodiment such as want to adjust the speed of the aircraft rintf (' \ n Flight speed: 1. Fast 2.3. Slow >> ');

Switch (Getche ())

{

Case ' 1 ': speed=2;

Break

Case ' 2 ': speed=3;

Break

Learn the language when must remember hands, do not deeds, this will be done above his business, no matter what kind of procedures have to do the hands to say will, do not say I will not learn, in fact, you do not want to learn, but you are determined to copy one months procedures, I guarantee I can have great progress, In fact, when you copy to a week to two weeks, you will want to copy, because you will find the program you can read, can help others to adjust the program, there is a sense of accomplishment! It will make you work harder to learn.

This article from the "11568700" blog, reproduced please contact the author!

Advanced C language First time job Liu Ziwei

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.