I want to print out the contents of a vector in C++, here is what I have:
#include #include #include #include
The problem is probably in the previous loop: (x = 17; isalpha(firstsquare); x++). This loop will run not at all (if firstsquare is non-alpha) or will run forever (if it is alpha). The reason is that firstsquare doesn't change as x is incremented.
(x = 17; isalpha(firstsquare); x++)
firstsquare
x