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