J'ai essayé pendant les 20 dernières minutes à comprendre pourquoi il est de lancer cette erreur ..Erreur: constructeur attendu, destructor ou conversion de type avant « < » jeton
#include <GL/glut.h>
#include <vector>
// global width and height
int GW;
int GH;
// current mouse position in pixel coordinate
int x;
int y;
typedef struct myTriangle {
float tx;
float ty;
} myTriangle;
vector<myTriangle> container;
Le code lance ceci:
Transform.cpp:17: error: expected constructor, destructor, or type conversion before '<' token
Ne modifiez pas votre code source avec un traitement de texte. Et utilisez std :: vector. –