| | |
array numbers
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
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,813
Reputation:
Solved Threads: 501
•
•
•
•
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 |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






