| | |
array numbers
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2008
Posts: 63
Reputation:
Solved Threads: 0
i have an array
weights[16][60]
16 rows of 60 columns
if you are changing indiviual elements it goes from weights[0][0] to weights[15][59] right?
see if im using them in a loop
for instance
so each element is used would it be 0 to i < 16 or 0 to i < 15?
weights[16][60]
16 rows of 60 columns
if you are changing indiviual elements it goes from weights[0][0] to weights[15][59] right?
see if im using them in a loop
for instance
C++ Syntax (Toggle Plain Text)
]for(int i = 0; i < 16; i++) {
so each element is used would it be 0 to i < 16 or 0 to i < 15?
•
•
Join Date: Jan 2008
Posts: 3,844
Reputation:
Solved Threads: 503
•
•
•
•
i have an array
weights[16][60]
16 rows of 60 columns
if you are changing indiviual elements it goes from weights[0][0] to weights[15][59] right?
•
•
•
•
see if im using them in a loop
for instance
C++ Syntax (Toggle Plain Text)
]for(int i = 0; i < 16; i++) {
so each element is used would it be 0 to i < 16 or 0 to i < 15?
i < 16 . You want to include 15. If it was i < 15 , that would only go up to 14. ![]() |
Similar Threads
- Reading in a *.csv file and loading the data into an Array (Java)
- Array (C++)
- Displaying values of an array (C++)
- Need help with Array Validation (C++)
- Data validation within a multi-dimensional array (Java)
- 2-D array (C++)
- Converting a char array into numbers (C++)
- Complex Numbers (C)
- Function[Array] in combination with cin>> (C++)
Other Threads in the C++ Forum
- Previous Thread: Multi Client server
- Next Thread: How do I bring a class into a function??
Views: 262 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






