![]() |
|
#1
|
|||
|
|||
Struct array - char arrayHello,
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? CPP / C++ / C Code:
Thanks Veda Last edited by LuciWiz : 27-Sep-2009 at 12:50.
Reason: Please insert your C code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: Struct array - char arrayYou are using sprintf() at the end to (what looks like to me, anyway) print the strings out to the screen when you should just use printf().
Also, on a side note, try using sprintf() to populate the strings within your struct: sprintf(nodes[0].title, "title1"); |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Str_Misaligned in Double Link List | Peter_APIIT | C Programming Language | 1 | 29-Feb-2008 21:50 |
| Warning: comparison is always false due to limited range of data type | nasim751 | Computer Software Forum - Linux | 1 | 30-Jan-2008 22:19 |
| No output after compile | nasim751 | Computer Software Forum - Linux | 1 | 29-Jan-2008 10:28 |
| Pointer initialization causing program abend? | emanresu | C Programming Language | 0 | 12-Dec-2006 11:36 |
| Debug Assertion Failed! | dlare9 | C Programming Language | 3 | 14-Nov-2005 00:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The