char veta[] = "neotvírejte, dokud vlak nezastaví!";
char separatory[] = " .,!?;:";


char *pom = strtok(veta, separatory);
if(pom)cout << pom << endl;
while((pom = strtok(NULL, separatory))!=NULL)
    cout << pom << endl;
