can someone help me with this.. i'm quite new in C++.. my problem here is that my instructor wanted me to demonstrate or apply calling for subprograms in the main program, and i really dont know how to do it.. i have done the code here and i already compiled it successfully without errors
#include <iostream>
#include <string>
using namespace std;
int main()
{
const int SIZE = 1000;
char name1[SIZE], name2[SIZE];
int a, b;
cout << "Enter a name: ";
cin.getline(name1, SIZE);
a=strlen(name1);