char * temp = new char [strlen(woerter[x])]; temp=woerter[x]; woerter[x]=woerter[y]; woerter[y]=temp; delete [] temp;