Writing name out horizontally using an asterisk?

Apr 28, 2014 at 7:13pm
I do not know anything about C++ programming and my professor is asking us to write our name out horizontally using the asterisk "*".
I do not know how to do this. I don't think it is as simple as using cout to display out my name.
Any help will be appreciated, thank you in advance!

Apr 28, 2014 at 7:24pm
I'll bet it is that simple if you're in a beginner class. Just use several couts.
1
2
3
4
5
6
cout <<  "     *        ***      "
cout <<  "    **       *    *   "
cout <<  "   *  *      ***     "
cout <<  "   ****     *    *   "
cout <<  " *      *    ***     " 
That's A and B. You have to figure out your own letters and hope you have a short name.

EDIT: The format gets messed up even with code tags but you get the idea.
Last edited on Apr 28, 2014 at 7:27pm
Apr 28, 2014 at 7:47pm
Yeah I get it now thank you very much!
Apr 28, 2014 at 8:45pm
Hey if you post your name that you need done, I can give this a whirl. I'm bored.
Topic archived. No new replies allowed.