LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Struct Use

Dear alls,
 
I'm a new user in Labwindowsand I've problem with the Structs,
 
I would like to make (and use) a struct
 
typedef struct
 {
 char mau[30];
 double valor;
 } estructura;  

estructura *estruc[10];
 
 
But I don't know what happens, It isnot working properly.
 
 
I would like to define a struct with
 
double valor and char mau[30].
 
But after to this, I need 10 times of this struct (I don't know if Is it clear?).
 
For example, Is it possible to use:
 
estruc[1]->mau="Test";
estruc[1]->valor=123.12;
estruc[2]->mau="Test2";
estruc[2]->valor=999.99;
 
 
Do I need
0 Kudos
Message 1 of 2
(2,602 Views)

Duplicated message: you already got responses here and here

Message Edited by Roberto Bozzolo on 07-12-2005 10:09 PM



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,595 Views)