Díky, asi to bude nejlepší na příkladě. Ten můj program je docela složitý, takže jsem napsala jednoduchý příklad s vektorem integerů. fillvector.h obsahuje toto:#include <vector>class Trida { int ix; vector<int> vInt; int poleInt[100];public: Trida(); void fillVector(int i);};fillvector.cpp:#include <string>#include <iostream>#include <fstream>#include <vector>#include "fillvector.h"using namespace std;Trida::Trida() { ix = 0;}void Trida::fillVector(int i) { poleInt[ix] = i; vInt.push_back(i); ix++;}a při překladu se hlásí chyby:Compiling...fillvector.cppd:\céèko\pomoc\ fillvector.h(4) : error C2143: syntax error : missing ';' before '<'d:\céèko\pomoc\fillvector.h(4) : error C2501: 'vector' : missing storage-class or type specifiersd:\céèko\pomoc\fillvector.h(4) : error C2059: syntax error : '<'d:\céèko\pomoc\fillvector.h(4) : error C2238: unexpected token(s) preceding ';'D:\Céèko\pomoc\fillvector.cpp(13) : error C2065: 'vInt' : undeclared identifierD:\Céèko\pomoc\fillvector.cpp(13) : error C2228: left of '.push_back' must have class/struct/union typeError executing cl.exe.fillvector.obj - 6 error(s), 0 warning(s)Asi tam mám nějakou blbost a nevím, co to je. Když odstraním vektor a pracuji s polem, je to dobře.