Witam, chciałem napisać bibliotekę a'la SFML, tylko że wyświetlającą wszystko w konsoli.
Problem pojawił się w metodzie draw, w klasie Console. Metoda ta, przyjmuje jako argument referencje na stały obiekt klasy abstrakcyjnej Drawable. W ciele tej metody, wywoływana jest metoda wirtualna draw klasy Drawable.
Github: https://github.com/Knayder/Console/tree/master/Console
Errory:
Error C2228 left of '.draw' must have class/struct/union Console c:\users\knayder\desktop\c++\c++\console\console\console.h 82
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Console c:\users\knayder\desktop\c++\c++\console\console\console.h 81
Error C2065 'drawable': undeclared identifier Console c:\users\knayder\desktop\c++\c++\console\console\console.h 82
Error C2143 syntax error: missing ',' before '&' Console c:\users\knayder\desktop\c++\c++\console\console\console.h 81
Także w formie zdjęcia:
http://i.imgur.com/u6VYsrH.jpg
Pozdrawiam.
PS. Main ma kilka linijek, reszta to komentarz.