libredwg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libredwg] Need help with String array in C


From: guruprasad rane
Subject: Re: [libredwg] Need help with String array in C
Date: Sat, 12 Nov 2011 23:24:14 +0530

Thank you very much :-)

On 12 November 2011 18:45, Till Heuschmann <address@hidden> wrote:
       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]);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]