i am creating a menu driven application which goes like this
1. Add an new employee
2. Show employee
3. Edit employee
4. Delete Employee
after i am able to add an employee through a function add() i m not able to display the value in 2nd option which has a function show.i am new to it and as far as i can say the variable looses its scope outside add function and nothing shows up in show(). What should i do??
1. Add an new employee
2. Show employee
3. Edit employee
4. Delete Employee
after i am able to add an employee through a function add() i m not able to display the value in 2nd option which has a function show.i am new to it and as far as i can say the variable looses its scope outside add function and nothing shows up in show(). What should i do??
Comment