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�:

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);
mais pourtant un message me dit:



7 C:\...\Channel.cpp ISO C++ forbids declaration of `vector' with no type
7 C:\...\Channel.cpp expected `;' before '<' token