cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
not sure if i did this right please help
not sure if i did this right please help!!
Apr 19, 2016 at 1:58am
Apr 19, 2016 at 1:58am UTC
ashley21466
(18)
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.