return expressions are not allowed on a global basis - page 2

 
  1. The return inside start
  2. End of your function
    void write_data()
       {
       :
       for (int i=0;i<=size;i++)
          {
             :    
          }
       FileClose(handle); 
       
          }     <<<< end of write_data
    
       return;  <<<< outside of function
       
    //+------------------------------------------------------------------+
    //|                                   |
    //+------------------------------------------------------------------+
    int start()