| | |
array numbers
![]() |
•
•
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,765
Reputation:
Solved Threads: 493
•
•
•
•
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??
| Thread Tools | Search this Thread |
addition api array base based binary bitmap c++ c/c++ char class classes code coding compile console conversion count delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email embed encryption error erroraftercompilation excel file forms fstream function functions game getline givemetehcodez gmail graph gui homework homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion reference rpg std::coutwstring string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets






