I made a program to print reverse polish notation of expressions using stacks
the problem is that my code prints only the last expression converted, i inserted output statements in between and yeah, it's converting every expression correctly but for some reason i don't understand when i display the outputs of test cases, it only shows the output of last
you should post the entire program but the last line smells "bad".
array is a pointer to pointer
you are writing array[i++] which basically means dereferencing the content at the address address of array + i++, but since array is not just a pointer, but a pointer to pointer, the result is that from that dereferencing you probably just got a pointer, and the std::cout stream is interpreting that pointer as a pointer to a string and printing only 1 string, the one pointed by array + i++.