Now that my program is growing in size and I have quiet a few display functions is it possible to put all these display functions in another header file eg. display_functions.h
My objective is to clean up my main() file so I dont have to scroll up and down all day.
I tryed to do it earlier and the project did compile.
HOWEVER when it called my displayfunction I entered which option I wanted i.e. 1 but it never returned the no back to the main();
eg.
Choose which option:
cout<<1. blah blah
cout<<2 blah blah
cin>>no
return no; // value of no was not returned to main()
My Question in short: IS IT POSSIBLE TO RETURN the value of no TO THE main() program.
thx in advance for advice