studentDR
11-30-2001, 11:53 AM
How do you write a statement that declares a standard array of three *******s, initialized to 1, 2, and 4?
|
Click to See Complete Forum and Search --> : C++ studentDR 11-30-2001, 11:53 AM How do you write a statement that declares a standard array of three *******s, initialized to 1, 2, and 4? driver 11-30-2001, 02:26 PM int arr[3]={1,2,4}; That's it. Galen of Edgewood 12-01-2001, 04:06 PM Originally posted by driver: int arr[3]={1,2,4}; That's it. Would you stop beating me to answers that I actually know. http://www.sharkyforums.com/ubb/biggrin.gif Great havin' you around, driver. ------------------ Dragon of the OC Crusaders The race is not always to the swift, nor the battle to the strong, but that's the way to bet. **-- Damon Runyon sicko 12-03-2001, 05:16 PM Just remember though that when accessing the array the locations starts at zero so arr[0] = 1, arr[1] = 2, and arr[2] = 4 dighn 12-04-2001, 02:15 PM sounds like assignment http://www.sharkyforums.com/ubb/smile.gif ------------------ Keep it brief SharkyExtreme.com
Copyright Internet.com Inc. All Rights Reserved. |