Hi everyone, I have a couple of questions?
1.this is part of my main function
//////////////////////////////
int main()
{
FILE *f1;
int i,j;
j=100000000;
int intData[1000];
f1=fopen("out3.txt","wt");
/* Generating 1000 integers from 100,000,001 to 100,001,000 */
for (i =0; i <1000; i++)
{
intData[i] = ++j;
}
/////////////////////////////
when i try to compile it i get syntax error before j as well as f1?
Can anyone provide clues on why is that happening?
2.//////////////////////////
struct t_node
{
void *item;
struct t_node *left;
struct t_node *right;
} node;
//////////////////////////
i get an warning : structure defined inside inside parms on compiling
//////////////////////////////
struct t_collection
{
/* Note that size is not needed any longer! */
int (*ItemCmp)( void *, void * );
struct t_node *node;
};
////////////////////////////////////////
even this one gives 2 warning saying that
warning : structure defined inside parms
warning: empty declarations
Any help is appreciated. Thanks in advance.