You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cpp_stl/main.cpp

22 lines
343 B

#include <iostream>
#include <string>
#include <list>
#include "Personnage/Personnage.h"
#include "Personnage/Kenny.h"
using namespace std;
int main()
{
list<Personnage *> anime = {new Personnage(), new Kenny(), new Kenny()};
for (Personnage *character: anime)
{
character->parler("Hey dude.");
}
return 0;
}