|
From: | guruprasad rane |
Subject: | Re: [libredwg] Need help with String array in C |
Date: | Sat, 12 Nov 2011 23:24:14 +0530 |
const char *ObjectsTypes[] = {"LINE", "POINT", "CIRCLE"};
const char *circle = ObjectsTypes[2];
Am 12.11.2011 10:56, schrieb guruprasad rane:
Hi All
I am very new to C. Need someone to help me with arrays in C.
I want to create and array of object types. Say ObjectsTypes where index 0 should have string "LINE", index 1 should have string "PLINE" etc
I should be able to us printf("Current Object is %s",ObjectsTypes[1]);
[Prev in Thread] | Current Thread | [Next in Thread] |