![]() |
char **Array[256] can't read? - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: C, C++, & Obj-C (https://sinister.ly/Forum-C-C-Obj-C) +--- Thread: char **Array[256] can't read? (/Thread-char-Array-256-can-t-read) |
char **Array[256] can't read? - ProfessorChill - 10-31-2017 So, I'm having a HUGE brainfart. I have "char **ITEMS[256];" I then add to the array with: char *input = NULL; wscanw(menu, input); ITEMS[ELEMENTS] = &input; But when reading the array with: mvwaddstr(menu, POSITION+1, 0, (char*)ITEMS[POSITION+1]); it doesn't read it? It displays nothing at all. Am I doing this wrong? I'm just doing challenges however this is just confusing me. That's good, but still, I'm really confused on this. The source is here for anyone wanting to help :I https://github.com/ProfessorChill/Cpp_Challenges/blob/master/0%20Chan%20Programming%20Challenges/10%20To-Do%20List%20Application/main.cpp |