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

Recommended Answers

All 3 Replies

Member Avatar for iamthwee

Hope this helps...

cout<<"*****************"<<endl;
cout<<"*               *"<<endl;
cout<<"*               *"<<endl;
cout<<"*               *"<<endl;
cout<<"*****************"<<endl;

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

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

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

You really 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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.