Shawn Shie wrote:
[SNIP]
Problems:
1).Why must a "typename" in place (1)?
I ever wrote some codes with no "typename"s,
but they could be compiled exactly and worked with no error.
When must "typename" be used??
2).What's the effect of the word "template"??
There are no error without the "template" as i tried.
So, are there any semantic differences between the two--with or
without "template" ?
Please read this online article from CUJ (ahem, from Steve Dewhurst):
http://www.cuj.com/documents/s=8464/cuj0308dewhurst/
It will answer all your questions.
--
Attila aka WW
.
|