Create a variable of same type?
Posted
by piemesons
on Stack Overflow
See other posts from Stack Overflow
or by piemesons
Published on 2010-05-14T18:14:35Z
Indexed on
2010/05/14
18:24 UTC
Read the original article
Hit count: 151
c++
I want to create a variable of same type of a type-unknown variable.How can I do that?
I actually wants to create a variable of same type of cout/cin (as they are objects). I used typedef,but it ERR.
© Stack Overflow or respective owner