Ok, lets say you have a file named "myfunctions.cpp" that contains
Code:
#include <iostream.h>
void SayHello()
{
cout << "Hello";
}
Then in your other file you might have
Code:
#include "myfunctions.cpp"
void accessories(void)
{
int choice;
do
{
system("cls");
cout << "==================" << endl;
cout << "1.) Converter" << endl;
cout << "2.) Back to Main Menu" << endl;
cout << "==================" << endl;
cout << "Please select: ";
cin >> choice;
switch (choice)
{
case '1': sayhello(); // Goes to another file which stores other stuff
break;
}
} while (choice != 3 );
}
You'll notice its the exact same as calling a function inside the file, except you need to "#include """ the file at the start.
~ Paul