Hi everyone,
I'm trying to to output an entire character of arrays in my program. I am using a header file with my class, and a source code file for my method definitions. Here are the relevant parts.
The method definition for getName()
char Account::getName() const
{
return *AccName;
}
In int main()
cout << AccountX.getName()<<endl;
Where AccName is "Jamey, Jomes". I am getting an output of just "J". How can I easily output the entire array of character so it reads "Jamey, Jomes" and not just "J"? I have to keep the pointer. Thanks.