GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Thursday, December 16, 2010

C Structure

In C, there's a structure that's like a primitive class concept..
struct Data{
 int id;
 char* name;
};
Then you use like below to declare a variable that reference to this one.
>>> struct Data satu;
typedef struct Data{
 int id;
 char* name;
}Kelas,Program;
Then you use
>>> Kelas satu;
Share/Bookmark

No comments:

Post a Comment