Account opening procedures:
Open an account/* * * * * * * * * * */
Int UserID (int ID)//ID increased from 0, in turn, as the account
{
System (" CLS ");
int i=0;
Printf (" \ n \ n ");
A person [ID]. UserID=ID;
Printf (" please input your name: ");
Scanf_s (" % s ", & amp; The person [ID]. Name);
Printf (" \ n your account number is: % d \ n ", the person [ID]. UserID);
PassWord (ID);
Printf (" your account has been registered successfully, please keep your personal information! \n");
Printf (" \ n \ nName \ nUserID: % d: % s \ n \ nMoney: % lf \ n \ n ", the person [ID]. UserID, person [ID]. Name, person [ID]. Money);
Return + + ID;
CodePudding user response:
To such a try, scanf_s (" % s ", the person [ID]. Name);