Quantcast
Channel: Error when compiling, error in array - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Shang for Error when compiling, error in array

The "," between each value count as a value. so I think 1,000,000.00 for example count as 3 values. eg. [1, 0, 0] I believe you were trying to do 1000000.00 instead of 1,000,000.00

View Article



Answer by fstd for Error when compiling, error in array

Your initializer contains 26 elements. Adds: Using > float premios[] = ... does not mean it's an empty array -- it means the number of elements in the array is deduced from the initializer, so it...

View Article

Error when compiling, error in array

float premios[20]={500.00, 700.00, 800.00, 900.00, 1200.00, 1500.00, 1800.00, 2000.00, 2100.00, 2300.00, 2800.00, 3000.00, 3200.00, 3500.00, 4000.00, 10,000.00, 100,000.00, 200,000.00, 500,000.00,...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images