C++ struct to Java class -


I want to convert such a c ++ struct:

  typedef struct FEATUREINFO {String str_ID; Four * CIID; Double * FeatureData; Int group; Bull beprint; IplImage * t_faceImg; } FEATUREINFO;  

and I will use it:

  FEATUREINFO * p_featureNode = new FEATUREINFO [100]; (; J & lt; 100; Int J = 0 {p_featureNode for J ++) [J] .featureData = (double *) calloc (t_featureLen, sizeof (double)); P_featureNode [j] .bPrint = false; }  

In the Java code I wrote my code:

  class FEATUREINFO {string str_ID; Four [] ciid; Public double [] featuredata; Int group; Public Boolean Biprint; // IplImage * t_faceImg; Public FEATUREINFO () {this.featureData = New Double [1280]; }} // class FEATUREINFO  

and test a simple code worte what I success:

  FEATUREINFO [] p_featureNode = new FEATUREINFO [100 ]; P_featureNode [5] .featureData [2] = 100.5; // This line will be error !!! = (Log.d (Tag_Test, "featureData:" + p_featureNode [5] .featureData [2]);  

I'm a beginner Java, please help me thank you very much! Much more!

My error is:

Thank you again !!!!! = D


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -