Voila j'aimerai créer dans un classe un tableau de string, donc je déclare un vecteur pouvant contenir 10 string comme je l'ai vu là:
mais pourtant un message me dit:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 #include<string> #include <vector> [...] private: vector <string> chan(10);
7 C:\...\Channel.cpp ISO C++ forbids declaration of `vector' with no type
7 C:\...\Channel.cpp expected `;' before '<' token
Partager