Creating my own data types.

This is a discussion on Creating my own data types. within the C++ Programming forums, part of the General Programming Boards category; Hi, Can I creat my own data types? Can they containg large numbers, larger than the long integer, or float. ...

  1. #1
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953

    Creating my own data types.

    Hi,
    Can I creat my own data types?
    Can they containg large numbers, larger than the long integer, or float.

    Thanks in advance.
    Ammar...

  2. #2
    Unregistered
    Guest
    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.

  3. #3
    looking for the truth moemen ahmed's Avatar
    Join Date
    Feb 2002
    Location
    Egypt
    Posts
    161
    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 !!

  4. #4
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Thanks for the answers.
    But does anybody know where I can find a tutorial, or an article about it?

  5. #5
    looking for the truth moemen ahmed's Avatar
    Join Date
    Feb 2002
    Location
    Egypt
    Posts
    161
    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 !!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extending basic data types.
    By nempo in forum C++ Programming
    Replies: 23
    Last Post: 09-25-2007, 03:28 PM
  2. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 08:55 PM
  3. Replies: 4
    Last Post: 06-14-2005, 05:45 AM
  4. C data types
    By dbaryl in forum C Programming
    Replies: 3
    Last Post: 07-21-2002, 01:05 AM
  5. Using enumerated data types
    By SXO in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2001, 06:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21