| | |
Arrays
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
>> each capable of storing five double precision numbers
That means you have to declare the arrays as double, not int.
Also, I find it a lot easier to normally declare all variables at the top of the function unless there is a good reason not to. I know c++ allows you to declare them anywhere but if you put them at the top its a lot easier to find them -- you don't have to search the entire function to see how a variable is declared.
That means you have to declare the arrays as double, not int.
Also, I find it a lot easier to normally declare all variables at the top of the function unless there is a good reason not to. I know c++ allows you to declare them anywhere but if you put them at the top its a lot easier to find them -- you don't have to search the entire function to see how a variable is declared.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- (reformatted) How to return Multi-Dimensional Arrays (C++)
- What relation does **indirection operator have with Multidimensional Arrays (C++)
- Arrays (C++)
- How to Return Multidimensional Arrays (C++)
- C file input/output 2D arrays. (C)
- passing arrays in visual basic (Visual Basic 4 / 5 / 6)
Other Threads in the C++ Forum
- Previous Thread: need help writing function
- Next Thread: Microsoft Visual C++ Express
Views: 1827 | Replies: 22
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort sorting spoonfeeding string strings struct temperature template templates text tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






