i've made the final draft of the program its the same as the one posted in post #15
only i've changed the return type of main to int and added the statement
return 0;
at the end.

i feel that it has improved since i've started this thread.

Thanks, everyone who has helped!


And Happy New Year to all.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.