Chilton 22 Junior Poster

I'd suggest buying it.

Chilton 22 Junior Poster

You're not using any print statements with your array. Create a loop to display its elements.

Chilton 22 Junior Poster

Also, your code is overly complicated. Since you know the stopping value "maxElements", why not loop around that number of times while calling the pow function?

Chilton 22 Junior Poster

Why are there unused local variables in the function power?

Also, bear in mind that your function is designed to take two arguments, yet you only supplied one in the function call.

Chilton 22 Junior Poster

Make a conscious effort and post something you're having difficulties with.

Chilton 22 Junior Poster

You can create an array of structs that can hold those three pieces of data. Afterwards, sorting based on the hours can be done, starting with those from hour 0 - 23.

Chilton 22 Junior Poster

As mentioned, you were trying to assign an integer to a pointer rather than dereferencing the pointer to store the value.