Void elsword forums login11/2/2022 # include # include # include # include // This function does the folowing tasks // 1: Checks if the file exists // 2: Gets The raw lines // 3: extracts raw ID and PASSW // I let errors handling to you ,now there is a standard // the first line containes the id the second containes the passW void get_ID_and_PASS( char fileName, char *id, char *pass)įscanf(F, "%s",rawLine) // 2 if(!count ) // 3 The user registers successfully offer the login screen (see functionality 1). The program randomly assigns a category to the user and informs the User of the category he/she is assigned. The following data is saved to the login file (“login.dat” “login.txt”): Save all data (except the password) to a file called The program should generateĪ sequential user-id. VOID ELSWORD FORUMS LOGIN FULLRegister: when this activity is performed, the program accepts the followingĬustomer date: full name, date of birth, age, emailĪddress, contact number, password, and date registered. Match the program displays the program menu other wise, advise the user that theirĬredentials are incorrect and ask the user is he/she wish to exit the program.Ģ. Otherwise, if the user-id is found ask the user to enter their password and thenĬompare it with a copy of the password from the “login.*” file. VOID ELSWORD FORUMS LOGIN REGISTRATIONRegister with the application, initiate the Registration functionality (see functionalityĢ). Then asks if he/she would like to register with the application. In the login file the program informs the user that he/she is not a registered user and Searches the “login.bat” or “login.txt” file for that user-id. Login: when this activity is performed, the user enters their user-id the program Ok here is a clearer explanation of what i'm doing.ġ. Printf( "Do you want to register y/n -> ") Printf( "Invalid User Id And Password\n\n") Printf( "Correct User Id And Password\n") # include # include # include # include int main()Ĭhar uoid = "ndrew",opasswrd = "program" Printf("Correct User Id And Password\n") Printf("Invalid User Id And Password\n") If (strcmp(uoid, userId) = 0
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |