| | |
help to work on structures..
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2008
Posts: 90
Reputation:
Solved Threads: 8
I am getting problem to work with the structures..I am works on DBMS project in c languge . I wanted to use multiple structures without the use of the pointers but unable to use it as:
so plz tell me the problem with it.Thanks in advance.
C Syntax (Toggle Plain Text)
struct File1 { ----- ----- }f1; struct FILE { --- --- struct File1 ; }
Last edited by ajay.krish123; Jul 3rd, 2009 at 8:12 am.
Your usage is incorrect.You can use it as :
You can also use the same thing above as this :
For more details have a look at this.
c Syntax (Toggle Plain Text)
struct File1 { //Your structure definition }; struct FILE { //Your other members struct File1 f1;//Here File1 acts as a abstract data type };
You can also use the same thing above as this :
c Syntax (Toggle Plain Text)
struct File1 { //Your structure definition }f1; struct FILE { //Your other members f1;//Here use f1 directly };
For more details have a look at this.
Last edited by csurfer; Jul 3rd, 2009 at 8:24 am.
I Surf in "C"....
![]() |
Similar Threads
- Need 2 techies for tech-support, work from home (Tech / IT Consultant Job Offers)
- Help with preg_match (PHP)
- Structures, external files, and functions (C)
- Data Structures (C)
- modifying the same member of many objects (C++)
- Why Data Structures???...QUESTIONS INSIDE (C++)
Other Threads in the C Forum
- Previous Thread: please hlep ()
- Next Thread: adding from 0 to a number that will be entered by the user .
Views: 223 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi





