Answer to Question #24198 in C++ for Nourh

Question #24198
Write a function called GreetUser that takes in a person’s name and print “Hello, ____” to the screen (where “_____” is replaced by the person’s name).
1
Expert's answer
2013-02-18T08:17:34-0500
#include<iostream>
using namespace std;
& void GreetUser(char *a){
cout<<"Hello, "<<a<<endl;

}
int main (){
char a[50];
cout<<"Enter your name : ";
cin>>a;
GreetUser(a);
&
system("PAUSE"); &
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS