| | |
New Type
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
You can use structures
The to declare a variable:
And to assig values.
Just use the var_name.member and you can do anything to them as would do to a normal int, char etc.
C Syntax (Toggle Plain Text)
struct Dtime { int mins; int years; int days; };
C Syntax (Toggle Plain Text)
dtime datetime;
And to assig values.
C Syntax (Toggle Plain Text)
datetime.min = 10; datetime.year = 2004;
Just use the var_name.member and you can do anything to them as would do to a normal int, char etc.
![]() |
Similar Threads
- conversion type (C++)
- "missing storage-class or type specifiers" error (C++)
- Enable Clear Type (Windows tips 'n' tweaks)
- Using a Folder Type as a Template (Windows tips 'n' tweaks)
- Which type of RAM do I use? (Motherboards, CPUs and RAM)
- struct type redefinition (C++)
Other Threads in the C Forum
- Previous Thread: sorting an array of string
- Next Thread: Using .length() with multidimensional char array ? (Help)
| Thread Tools | Search this Thread |
#include * ansi append array arrays asterisks binarysearch calculate changingto char character cm convert copyimagefile cprogramme creafecopyofanytypeoffileinc database dynamic execv feet fflush fgets file fork forloop framework function getlasterror givemetehcodez grade gtkwinlinux hacking hardware histogram inches include incrementoperators input intmain() iso kernel keyboard km license linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft motherboard mqqueue number oddnumber odf opendocumentformat opensource overwrite owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv recvblocked research reversing scanf scripting segmentationfault sequential socket socketprograming standard string systemcall testing threads turboc unix user variable voidmain() wab whythiscodecausesegmentationfault windowsapi





