User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 455,974 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,807 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 541 | Replies: 2
Reply
Join Date: Nov 2007
Posts: 12
Reputation: johny112 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
johny112 johny112 is offline Offline
Newbie Poster

c++ function that displays at the left margin of the screen a solid square of asteris

  #1  
Nov 27th, 2007
Im trying to write the programme for the following question, and im really struggliing. I will be reaaly thankful if someone can give me some tips or a programme for this.

I would also like to point that im new to programming and this website so please give me some details for statements if possible.


Question-
Write a function that displays at the left margin of the screen a solid square of asterisks whose
side is specified in integer parameter side. For example, if side is 4, the function displays:
Sample Screen Display
****
****
****
****
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Posts: 1,284
Reputation: Lerner is just really nice Lerner is just really nice Lerner is just really nice Lerner is just really nice 
Rep Power: 9
Solved Threads: 174
Lerner Lerner is offline Offline
Nearly a Posting Virtuoso

Re: c++ function that displays at the left margin of the screen a solid square of asteris

  #2  
Nov 27th, 2007
Look up the concept of nested loops in your reference material. It means a loop within a loop, and is a commonly used technique so there shouldn't be any problem finding a number of references. Then post code and specific questions about the code, error messages, etc, as necessary.
Reply With Quote  
Join Date: Nov 2007
Posts: 12
Reputation: johny112 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
johny112 johny112 is offline Offline
Newbie Poster

Re: c++ function that displays at the left margin of the screen a solid square of ast

  #3  
Nov 27th, 2007
thanks i will try that.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C++ Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 9:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC