Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   difference between Typename and Class in C++ (http://www.velocityreviews.com/forums/t680532-difference-between-typename-and-class-in-c.html)

Pallav singh 04-19-2009 12:08 PM

difference between Typename and Class in C++
 
Hi

Q what is difference between Typename and Class in C++?
Q what is difference between typedef and typename?

Thanks
Pallav Singh

red floyd 04-19-2009 02:21 PM

Re: difference between Typename and Class in C++
 
Pallav singh wrote:
> Hi
>
> Q what is difference between Typename and Class in C++?
> Q what is difference between typedef and typename?
>


http://www.parashift.com/c++-faq-lit...t.html#faq-5.2

Google is also your friend.

amrollahi.saeed@gmail.com 04-19-2009 03:24 PM

Re: difference between Typename and Class in C++
 
On Apr 19, 3:08*pm, Pallav singh <singh.pal...@gmail.com> wrote:
> Hi
>
> Q what * is * difference * between * Typename and * Class *in * C++?
> Q what * is * difference * between * typedef * and * typename?
>
> Thanks
> Pallav Singh


Hi Pallav
I assume it isn't a homework.
typename is a keyword which mainly used in programming templates.
class is the
most important fundamental concept in C++. It is used for design and
implementation of user-defined type.
typedef is used for somehow introducing a new name for a type (built-
in and user-defined).
They are vey different in nature and usage.
"typedef" is C/C++ keyword but "class" and "typename" belongs to C++.
I really don't want to be precise.
Use C++ FAQ and The C++ Programming Language by Bjarne Stroustrup for
details
and of course start C++ programming.

Good luck,
-- Saeed Amrollahi


All times are GMT. The time now is 09:05 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57