| | |
help to work on structures..
![]() |
•
•
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 .
| Thread Tools | Search this Thread |
* adobe ansi api array asterisks binarysearch calculate centimeter changingto char character cm convert copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory feet fflush fgets file fork forloop frequency givemetehcodez grade graphics gtkgcurlcompiling gtkwinlinux hacking highest histogram homework i/o inches infiniteloop input intmain() iso kernel keyboard km linked linkedlist linux linuxsegmentationfault list locate looping loopinsideloop. lowest match microsoft mqqueue mysql number oddnumber odf open opendocumentformat owf pattern pdf performance posix probleminc process program programming radix recv recvblocked repetition research reversing scanf scheduling segmentationfault send sequential socket socketprograming stack standard string systemcall threads turboc unix user variable voidmain() wab whythiscodecausesegmentationfault windows.h windowsapi





