The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 I want to use "union" in the origin.c
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

haesong7

Albania
1 Posts

Posted - 01/12/2003 :  07:01:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello, ^^

I really want to use "union" strcuture.However, I can't.

typedef union {
short gt[4];
double answer ;
} ex;

void test(void){
ex example;
...
}

Please, let me know how to declare "union"....

hajo_old

Germany
141 Posts

Posted - 01/22/2003 :  08:35:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

try to take "struct"

typedef struct example
{
short gt[4];
double answer ;
}ex;

Hope this works..
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000