arrays? i dont get it

ok, so i got this note from class i dont understand shit please helps me out

// arrays example
#include <iostream.h>

int billy [] = {16, 2, 77, 40, 12071};
int n, result=0;

int main ()
{
for ( n=0 ; n<5 ; n++ ) //this part i dont get
{
result += billy[n];
}
cout << result;
return 0;
}
Last edited on
See "The for loop" about halfway down this page: http://www.cplusplus.com/doc/tutorial/control/
thankz alot chervil :3
Topic archived. No new replies allowed.