C language and two-dimensional array of small projects

grammar:

 datatype name [ rowSize ] [ colSize ] ;

double score [ 5 ] [ 3 ]

int animate [ 4 ] [ 4 ]

 

Dynamic assignment of two-dimensional array:

 

 ————————————————————————————————

 

Project combat:

 

Using the Console to write a small game are the following functions:

 

- New data

--change the data

--Query data

- Sorting data

 

 

game rules:

 

Game total of 10 days

Billing favorability per day, once or three or more than 60 concubines favorability, riots, the game

 

 

review:

 

Branch circulation

Loop structure

Array

 

supplement:

 

Use an array to store a string of characters

Used string functions, such as comparison, replication

Using two-dimensional arrays

Sound Playback

 

Description:

 

New concubine default favorability 100

Others favorability unity minus 10

Print status of all concubine

 

 

 

 

 

 

 

 

 

 

 

 

Old nine school community members produced

Author: zero

Guess you like

Origin www.cnblogs.com/ljxt/p/11585893.html