Home > Back-end >  Help to stick!
Help to stick!

Time:09-18

Let me help liao!
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 character

CodePudding 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 complicated

CodePudding 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:

reference 3/f, 5250 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? It is good to pause for a moment, using the sleep function

Yes listed one by one

CodePudding user response:

reference maomao, 4/f, 596 response:
Quote: refer to the third floor of 5250 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? It is good to pause for a moment, using the sleep function

Yes one after another list

Then use the sleep function to pause between output characters, you grasp the time

CodePudding user response:

Thank you all for?? I got it
  • Related