|
From: | Till Heuschmann |
Subject: | Re: [libredwg] Need help with String array in C |
Date: | Sat, 12 Nov 2011 14:15:35 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
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" etcI should be able to us printf("Current Object is %s",ObjectsTypes[1]);
[Prev in Thread] | Current Thread | [Next in Thread] |