function - Syntax for using a struct as input in C -


I am trying to isolate a program in some pieces (as such, the function was written separately instead Is the file). The function I am using the output is an array of strokes and when I get everything in a file, then it's running fine. I'm thinking about how to call this structure properly, however, at the moment in my separate file, I have:

  zero-zero dualum (double L1, double L2 , Double lag, double h, structure boat_param * value); Int main () {Double L1, L2, Love, H; Structure name_param value [211]; L1 = 17.6; L2 = 3; Love = 4; H = 4.5; Dipped_Volume (L1, L2, Lavin, H, Mann); Unsigned four I = 0; (I = 0; i & lt; = 90; ++ i) {printf ("V =% lf \ nUc =% lf \ nVc =% lf \ n", value [i] .V, value [i]. UC, Maan [i]. Vc); } Return 0; } Duplicated_ volume function starts like this: zero dipped_volume (double L1, double L2, double lag, double H, structure name_param * result)     P>  Note  - When the main is in the same file, it works. At the moment, I'm getting those errors with the installation of different files:  
  friction_equilibrium.c: 12: 26: error: the incomplete element type 'strait boat_arm' structure in the array name_param values ​​[ 211]; ^ Friction_equilibrium.c: 12: 8: Note: Forwarded announcement of 'Structure Boat_param' 'Straight Name_param' values ​​[211]; ^ Friction_equilibrium.c: 19: 1: Warning: The underlying disclosure of the function 'contained Valm' in CM 99 is illegal [-Vimilite-Function-Announcement] Dipped_Volume (L1, L2, Lavin, H, Mann);   

I hope this is explained right away !! Do these errors mean any ideas about fixing them? Thank you in advance!

The error you are reporting is that struct boat_params yet Not defined

This is usually done using the header file , when you need it, then #include . A specially placed structure definition and function prototype in the header file.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -