I want to initialize an double array with size 200, and its value is from 0 to 199 from index 0 to 199 in c++.
i know i can do it by a simple For loop, but is there a way just to initialize the double array like this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not really. A for loop is your best option: