You should try to use different names for local an global variables, it is bad style. Also cin is an istream object so `cin>>"Some string"` does not make much sense. Zsombi
View entire thread