School program design week, asked to design a mobile phone address book system, including a dial-up functionality, his request is this: can all the people in the show directory name, a name was elected, the screen to simulate the effect of the typewriter, in turn, shows that the person's phone number, every number
Second part want to ask how to implement? In turn display?
, every brother please save the children
CodePudding user response:
Try it like this: name was elected, the corresponding number assigned to a character array, and then loop output each characterCodePudding user response:
To build a structure, each name corresponds to a phone number, when the user name in his hand immediately typed it begins, it's not that complicatedCodePudding user response:
To this kind of XXXX system, rather than use structure arrays, no problem,Struct XX {
Char name [20].
Char tel [20].
}
Put all the names listed circulation, after input the name, lookup structure arrays, the telephone list not line?
The effect of the so-called typewriter what you mean? List one by one instead of an output? Pause for a moment, using the sleep function
CodePudding user response: