****************************************...
* Pushing Limits 5 *
* Finding Truth 8 *
* Author : Name *
* Release Date: Thursday, Feb. 15 *
**************************************...
I am working with Visual C++ 2005 Express Edition. I need to program this to display on a screen. I am totally confused. If you could list how to construct the code and explanation 5 stars for you!
PS the asterisks are included in the design. They also form a rectangle.
Need help programming?
string s;
char[] star = "******************************";
cout %26lt;%26lt; star;
s.append("* Pushing Limits ");
s.append(5);
s.resize(star.length-s.length,' ');
s.append("*");
cout %26lt;%26lt; s;
s.length = 0;
s.append("* Finding Truth ");
s.append(8);
s.resize(star.length-s.length,' ');
s.append("*");
cout %26lt;%26lt; s;
s.length = 0;
s.append("* Author : ");
s.append(name_here);
s.resize(star.length-s.length,' ');
s.append("*");
cout %26lt;%26lt; s;
s.length = 0;
s.append("* Release Date : ");
s.append(date_here);
s.resize(star.length-s.length,' ');
s.append("*");
cout %26lt;%26lt; s;
cout %26lt;%26lt; star;
Reply:In the main function, type the following:
cout%26lt;%26lt;"******************************"...
cout%26lt;%26lt;"* Pushing Limits 5 *"%26lt;%26lt;endln;
cout%26lt;%26lt;"* Finding Truth 8 *"%26lt;endln;
cout%26lt;%26lt;"* Author : Name *"%26lt;%26lt;endln;
cout%26lt;%26lt;"* Release Date: Thursday, Feb. 15 *"
cout%26lt;%26lt;"******************************"...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment