Answered by:
what's the meaning of the letter 't' in the "wchar_t" type word?

Question
-
i am new to C++ and i found it hard to decode some mysterious abbreviations...thanks for the hints.
what's the meaning of the letter 't' in the "wchar_t" type word?
sam- Edited by SoBigSoBig Thursday, August 28, 2008 2:23 AM complete the question.
Thursday, August 28, 2008 2:22 AM
Answers
-
wide character type
- Proposed as answer by Nambiraj Thursday, August 28, 2008 8:32 AM
- Marked as answer by Yan-Fei Wei Monday, September 1, 2008 8:48 AM
Thursday, August 28, 2008 3:41 AM -
In general, "_t" at the end of a name means it's a type. There's plenty of them in C and C++: size_t, ptrdiff_t, time_t, and so on. They're usually meant to allow developers a standard way of handling data whose actual representation can vary in different implementations. (For example, size_t will normally be 32 bits on a 32-bit system, and 64 bits on a 64-bit system.)
- Marked as answer by Yan-Fei Wei Monday, September 1, 2008 8:48 AM
Thursday, August 28, 2008 2:50 PM
All replies
-
wide character type
- Proposed as answer by Nambiraj Thursday, August 28, 2008 8:32 AM
- Marked as answer by Yan-Fei Wei Monday, September 1, 2008 8:48 AM
Thursday, August 28, 2008 3:41 AM -
thanks, i didn't realize that it is so "should be like this"... :)
samThursday, August 28, 2008 6:35 AM -
In general, "_t" at the end of a name means it's a type. There's plenty of them in C and C++: size_t, ptrdiff_t, time_t, and so on. They're usually meant to allow developers a standard way of handling data whose actual representation can vary in different implementations. (For example, size_t will normally be 32 bits on a 32-bit system, and 64 bits on a 64-bit system.)
- Marked as answer by Yan-Fei Wei Monday, September 1, 2008 8:48 AM
Thursday, August 28, 2008 2:50 PM -
thanks, David, your explanation is very clear and thorouth, i deeply appreciate it. :)
samTuesday, September 2, 2008 1:59 AM