#include<iostream>

using namespace std;

#include <stdlib.h>

 

struct node {

  int x;

  struct node *next;

};

 

int main()

{

      struct node *root;

     

//LL1.cpp:16: invalid conversion from `void*' to `node*'

      root = malloc( sizeof(struct node) );

      root->next =
0;

      root->x = 5;

}

 

 

LL1.cpp:16: invalid conversion from `void*' to `node*'

         
        
        








        


        
        


      

[Non-text portions of this message have been removed]

Reply via email to