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"); & }
Comments
Leave a comment