Bonjour je teste l'utilisation des liste de la STL et je bloque
quelqu'un pourrait-il me dire ce qu'il ne va pas ?
merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 #include <list> using namespace std; typedef list <char *, char *> UpList; typedef list <int, UpList> MasterList; int main(int argc, char* argv[]) { UpList UpListA; MasterList MasterListA; UpListA->push_back("a", "b"); UpListA.push_back("a", "b"); UpListA.push_back("a", "b"); MasterListA.push_back(1, MasterList); UpListA.push_back("c", "d"); UpListA.push_back("c", "d"); UpListA.push_back("c", "d"); MasterListA.push_back(2, MasterList); return 0; }
Partager