To be honest, there is so much wrong with that code that you need to get yourself a decent book and start from scratch. I mean that in the least possible offensive way. You are trying to run before you can even walk.
All of the functions that are inside main() need to be taken out of main and made their own stand-alone function. Also, if you place them after main(), you will have to declare them first.
Moreover, moving the functions into a proper place will not solve all your problems.
You should take the advice of Chewbob and buy a book on basic C/C++ programming, for you will never understand your own code until you at least learn the basics.
I have a c++ book and it's been only 3 weeeks I started programming. So you guys are saying that I shoul take the functions out of the int main() and declare the variables in void Am I right??
You have just gone and made it worse.
Where is main?
What is fout?
What is fin?
Assuming they are your file streams, why are you trying to interact with them as though they are the standard input/output?
You have no () after your function calls or even in their declarations.
Your loops at the bottom make no sense. You are getting the syntax wrong on so many things.
It may sound harsh but it's true. What is the name of the book you are using?
ok all i want is to use fin or cin but it says that i didnt declare them and i declared acctno but its saying that i didnt declare it why??
ok i will start from the beginning