Hi...
Does anyone know how to initialize data into array of structure?
I tried using this:
User userArr[3]={
{1,"Joe","palm1"},
{2,"Dan","palm2"},
{3,"Tim","palm3"}
};
typedef struct{
Int16 userID;
const char *name;
const char *password;
}User;
I got expression syntax error. what's the problem since in C you can
initialize just like what i did or perhaps palm programming has certain
rules that i dont know.
any help will be appreciated.
-paul
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/