954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hollow box program

i need help with writing a program that produces a hollow box of stars

Scoobs
Newbie Poster
2 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Hope this helps...

cout<<"*****************"<<endl;
cout<<"*               *"<<endl;
cout<<"*               *"<<endl;
cout<<"*               *"<<endl;
cout<<"*****************"<<endl;
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

// I'm A Noob but I hope this helps ~ any comments are welcome

[moderator edit: We don't give handouts for obvious homework]

Vagabond
Newbie Poster
8 posts since Mar 2006
Reputation Points: 34
Solved Threads: 0
 
// I'm A Noob but I hope this helps ~ any comments are welcome


Youreally need a new compiler. You're honestly not helping yourself by learning pre-standard C++ (And i'm afraid to say that pasting code like that won't help anyone else either. Even with the conio stuff removed, your code won't compile on some modern implementations).

If you want to stick with Borland, then AFAIK, they have a free version of their CPP-builder available. Otherwise, there are other free compilers available for windows - MS VC++ toolkit 2005, Quincy, MingW... and probably more that I can't think of right now. a google search will turn up a load of results.

Bench
Posting Pro
577 posts since Feb 2006
Reputation Points: 307
Solved Threads: 63
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You