Hi,
Can I creat my own data types?
Can they containg large numbers, larger than the long integer, or float.
Thanks in advance.
Ammar...
Hi,
Can I creat my own data types?
Can they containg large numbers, larger than the long integer, or float.
Thanks in advance.
Ammar...
yup.
you can declare your own data types using enumerated types, structs, classes, and typedefs that I can think of.
If you are trying to use numbers bigger than upper limit of doubles, then declaring your own class and overloading the various mathematical operators, etc. may be worth your while. It is a relatively common exercise in programming instructions and there are a number of posts pertinent to that type of a project on this board.
User-defined data types is one of the most important features in OOP(object oriented programming), which is full supported in C++.
as it was said in the previous reply enumerations , structures and classes form together this ability, which you should pay more attention for it, as long as you intened coding in c++.
as a beginning you may take a look at the tutorials available in this site.
Programming is a high logical enjoyable art for both programer and user !!
Thanks for the answers.
But does anybody know where I can find a tutorial, or an article about it?
try the tutorial here in this site , its very good one........
good luck !
Programming is a high logical enjoyable art for both programer and user !!