ok. here is the other source File
Code:
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string name;
int age;
cout << "What's your name? " << endl;
cin >> name;
cout << "How old are you?" << endl;
cin >> age;
cout << "Hello "<< name
<< ", you will be " << age+1
<< " years old on your next birthday." << endl;
return (0);
}
and here is the second source file
Code:
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main (void)
{
const double PI = 4*atan(1.0); //the constant Pi
double d; //diameter
double r; //radius
double area; //area
string n; //your name
cout << "What is your name?" << endl;
cin >> n;
cout << "Enter the diameter of a circle:" << endl;
cin >> d;
r = 1/2 *d;
area = PI * r * r;
cout << "Hi " << n << ", the area of a circle with a diameter of "
<< d << "is" << area << endl;
return 0;
}
I am not sure what you mean by " in scope of each other".