Thread: arrays proplem
View Single Post
Join Date: Sep 2004
Posts: 7,679
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 727
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: arrays proplem

 
0
  #2
Dec 28th, 2007
>what does it this mean Initialize the array so that the first 25
>components are equal to the square of the index variable ?
I would assume something like this:
  1. for ( int i = 0; i < 25; i++ )
  2. alpha[i] = i * i;
I'm here to prove you wrong.
Reply With Quote