is there a way to jump to a seperate file with code?
for example
Code:#include <iostream> using namespace std; int main() { int x; cout<<"choose from menu\n"; cout<<"1, search phone book\n"; cout<<"2, edit phone book\n"; cout<<"\n"; cout<<"input : "; cin>> x; switch ( x ) { case 1: cout<<"goto different file"; cin.get(); break; case 2: cout<<"goto different file"; cin.get(); break; default: cout<<"incorrect input"; cin.get(); break; } }