title: Error: unknown type name 'record'
body: <p>This is my code in codeblocks C language
  <em>sorry i'm new in here</em></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  #include &lt;stdlib.h&gt;
  
  struct record
  {
  char name[50];
  char id[30];
  char course[7];
  char project[100];
  char field[3];
  char supervisor[30];
  
  };
  
  struct record addname();
  void list_func(record);
  
  int main()
  {
  struct record student1,student2;
  
  student1=addname();
  student2=addname();
  
  printf("\n\n\tUNDERGRADUATE PROJECT RECORD SYSTEM");
  list_func(student1);
  list_func(student2);
  
     getch();
  }
  struct record addname()
  {
      struct record system;
      printf("\nEnter student's Name: ");
      gets(system.name);
      printf("Enter matrix's ID: ");
      gets(system.id);
      printf("Enter course's Name: ");
      gets(system.course);
      printf("Enter Project Title: ");
      gets(system.project);
      printf("Enter Field: ");
      gets(system.field);
      printf("Enter Supervisor's name: ");
      gets(system.supervisor);
      return (system);
  }
  
  void list_func(record list)
  {
      printf("\n\nStudent's Name: %s",list.name);
      printf("\nMatrix ID: %s",list.id);
      printf("\nCourse: %s",list.course);
      printf("\nProject's Title: %s",list.project);
      printf("\nField: %s",list.field);
      printf("\nSupervisor: %s",list.supervisor);
      printf("\n");
      printf("\n------------------------------------------------");
  
     return;
  }
  </code></pre>
  
  <p>Okay, this is my errors:</p>
  
  <p>at line 17,</p>
  
  <pre><code>void list_func(record);
  </code></pre>
  
  <p>at line 50,</p>
  
  <pre><code>void list_func(record list)
  </code></pre>
  
  <p>it says </p>
  
  <pre><code>line 17    warning: parameter names (without types) in function declaration [enabled by default]
  line 50    error: Unknown type name 'record'
             in function 'main'
  line 31    warning: control reaches end of non-void function [-Wreturn=type]
  </code></pre>
  
  <p>seriously i don't get it why is that. I use my friend's coding as reference and change it a lil bit and then failed to debug.
  And i even copied and paste my friend's code at my codeblocks project but it still can't run
  But it can run perfectly at her codeblocks project.
  Can anyone help me?
  I'm not so good in coding </p>