How to use more file's in code?

Hi, how to use multiple file's in a program?
Example: one to be with menu and another one to be with an engine, the first one need to use the second one to complete a thing

Thanks in advance for any tryes! This is not an homework! Sorry for my english! Im beginner!

File 1;
1
2
3
4
5
6
//...
cout<<"Enter file's location: "<<endl;
cin >> a; //which is file location
//accepting the result of a

Useing the File 2;


File 2:
1
2
//Finding the files engine
//after succeful final, go back with result's for file 1 to display it 


Sorry if i make confusion!
This is not an homework!

"Homework" is something that you do on your own with the goal to learn. There need be no "professor" or "class" behind homework.


It does seem like you are asking about how to arrange the source code of a larger project. See:
http://www.cplusplus.com/articles/2v07M4Gy/
http://www.cplusplus.com/articles/Gw6AC542/
It won't helped me but thanks keskiverto for try!
Topic archived. No new replies allowed.