| | |
displaying two dimensional array in columns help
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2007
Posts: 9
Reputation:
Solved Threads: 0
C++ Syntax (Toggle Plain Text)
Hi iam having trouble with displaying my two dimensional array in columns eg. |Pie |Peach |Socks |$3.4 |$5 |$9 |Apple |Carrot etc... |$6.8 |$2 <span class="ad_notxt"><code class="inlinecode"> //for(col = 0; col < COLSIZE; col++) for(row = 0; row < ROWSIZE; row++) { for(col = 0; col < COLSIZE; col++) //for(row = 0; row < ROWSIZE; row++) { ...... </code></span> this loops through the array but i cant seem to get it to display the items in the array like how ppl teach other ppl how it looks like. i've tried <span class="ad_notxt"><code class="inlinecode"> cout.width(0); cout <<left<< "|" ; cout <<item[row][col].Name << endl; cout.width(0); cout <<left <<"|"; cout.width(0); cout <<item[row][col].Price << endl; </code></span> with differenct variations but just dosent work :'( any advice? Thanks
•
•
Join Date: Apr 2007
Posts: 9
Reputation:
Solved Threads: 0
C++ Syntax (Toggle Plain Text)
i have tried other values but it jsut pushes the element further away. i cant get the element besides each other
![]() |
Similar Threads
- Need Help With two-dimensional array (VB.NET)
- two dimensional array (C)
- 2 dimensional array class (C)
- multi dimensional array search xml parser (PHP)
- Need help passing a multi-dimensional array (C++)
- Trying to create a method to convert string letters into a two dimensional array (Java)
Other Threads in the C++ Forum
- Previous Thread: Can't figure out whats wrong
- Next Thread: quick little assistance on silly word count!!
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






