How to store constants

Declare constants to store the four vertices (x and y coordinates) that specify the boundary of the flat surface. Similarly, declare constants to store the positions (x and y coordinates) of the five trophy objects.

A = (0,10), B = (10,10), C = (10,0), D = (0,0)
1
2
3
4
5
6
#include <utility>

const std::pair<int, int> A( 0, 10 );
const std::pair<int, int> B( 10, 10 );
const std::pair<int, int> C( 10, 0 );
const std::pair<int, int> D( 0, 0 );
Topic archived. No new replies allowed.