Hey.
I'm using VC++
Problem: "antPoints must be a const value".
Here I'm trying to find the number of points exactly I need to store so I don't use more space than I need (I know I could use a list or vectors but i havn't).
Here the antPoints excits and is set as a const and doesn't change when the points array comes and uses it right?
But why won't this work and what do I have to do to get it to work?
I'm using VC++
Problem: "antPoints must be a const value".
Code:
#include <SFML/Graphics.hpp> #include <math.h> const int antPoints = pow(2, detail + 1) + 1; sf::Vector2f points[antPoints]; // My points to draw later.
Here the antPoints excits and is set as a const and doesn't change when the points array comes and uses it right?
But why won't this work and what do I have to do to get it to work?
Comment