Hello,
I am trying to run the following code (on a NDS gameconsole) but it doesn't run for some reason. Can anyone tell me what i am doing wrong?
Code:
struct node
{ char title[26];
char description[201];
char datum[21];
};
struct node nodes[10];
nodes[0].title[0]='t';
nodes[0].title[1]='i';
nodes[0].title[2]='t';
nodes[0].title[3]='l';
nodes[0].title[4]='e';
nodes[0].title[5]='1';
nodes[0].title[6]='\0';
nodes[1].title[0]='t';
nodes[1].title[1]='i';
nodes[1].title[2]='t';
nodes[1].title[3]='l';
nodes[1].title[4]='e';
nodes[1].title[5]='2';
nodes[1].title[6]='\0';
sprintf("%s\n",nodes[0].title);
sprintf("%s\n",nodes[1].title);
Thanks
Veda88