![]() |
|
#1
|
|||
|
|||
help with program pleasewe are supposed to enter a number of stores (i.e. 9 stores) and make a bar graph based on every 100$ sale
stores:9(random number i entered just to show example store 1: 400$(random number i entered just to show example) store 1: **** store 2: 900$ store 2: ********* store 3: 500$ store 3: ***** store 4: 1000$ store 4: ********** and so on... it just doesnt seem to work CPP / C++ / C Code:
Last edited by LuciWiz : 05-Dec-2007 at 15:44.
Reason: Please insert your C/C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: help with program pleaseI think it would be simpler if you store the values for each store in an array (or vector). This way, you could find the largest value and work your way down from there. Here's how I would do it:
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: help with program pleasethanks, although i have trouble getting the bargraph to work correctly
|
|
#4
|
|||
|
|||
Re: help with program pleaseCPP / C++ / C Code:
Last edited by admin : 07-Dec-2007 at 10:43.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two-Tier data dissemination code installation problem | nidhibansal1984 | Computer Software Forum - Linux | 6 | 16-Sep-2007 11:13 |
| Text-Based Roulette Game | mfm1983 | C++ Forum | 5 | 29-Nov-2006 13:20 |
| BOOKEEPING program, HELP!! | yabud | C Programming Language | 10 | 17-Nov-2006 04:48 |
| Pipeline freeze simulation | darklightred | C++ Forum | 6 | 27-Jul-2006 20:37 |
| How to read particular memory location ? | realnapster | C Programming Language | 10 | 10-May-2006 10:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The