Welcome, please make a selection
1.) Login
2.) Register
what would you like to do?
if 1
please enter your username:
please enter your password:
if user exists
hello user
if user does not exist
please registerif 2
what would you like your username to be
what would you like your password to be
when finished entering in both desired username and pass, write to some file to keep a record and remember for the next time this user wants to log in again.
is this doable?
if so, how could i achieve this?
(I do not want the code written out for me, but with that said i do not know if there are certain commands that i do not know exist)
flow control is not something i know about. however variable and file handling (although i'm guessing this has to do with separate header files) is something i know about. thank you for the links.
switch (choice)
case 1;
function // what do do after choosing choice 1
break;
case 2;
function // ''''''''''''''after choosing choice 2
break;
.
.
.
.
.
and so on!!
try to solve it yourself .. post what you`ll get here ..then if something wrong mention and we`ll help you
so the output for the user is out after choosing one of the cases ,, and say that the user intered the first one he'd log in and then you have to input a function to check if he wntered right or wrong answers to either go back and login again or if all true to continue without goin back to start!!
and for choice two you`ll not need the check... and the user continues