mercredi 5 juin 2019

the set and class does not name a type

In peca1 and par1, lines 7,8 and 9, my program return: peca1, par1 does not name a type.

#include "Piece.hpp"
#include "doctest.h"

Piece peca1 = Piece("N", "a4", "c3");
std::pair<int, int> par1;

par1.first = int("c"%97);
par1.second = 3;
peca1.checkMovements();

TEST_CASE("TESTE N-check"){
    CHECK(peca1.currentPosition == par1);
}

Aucun commentaire:

Enregistrer un commentaire