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:

struct File1
{ 

-----
-----
}f1;

struct FILE
{
---
---
struct File1 ;
}

so plz tell me the problem with it.Thanks in advance.

Your usage is incorrect.You can use it as :

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 :

struct File1
{ 
//Your structure definition
}f1;

struct FILE
{
//Your other members
f1;//Here use f1 directly
};

For more details have a look at this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.