not sure if i did this right please help!!

Apr 19, 2016 at 1:58am
Write a function that will display your name and address each time it is called. Write a program to test it (perhaps a cover letter for a resume) and call the function more than once.

this is my code:
#include <iostream>
using namespace std;

void displayMessage()
{
cout << "name \n";
cout << "address \n";
}

int main()
{
cout << "name \n";
cout << "address \n";

for (int count = 0; count < 3; count++)
displayMessage();

cout << "name.\n";
cout << "address \n";
system("pause");
return 0;
}

i did my code and it works but im not sure how to test it??
Topic archived. No new replies allowed.