I want to manipulate a pointer to an array of structs by adding values to the array and printing them. This is the code: #include <iostream> using namespace std; struct words { char letter; bool marked; }; int main(){ int ncols, nrows; words* data; data = new words [ncols * nrows]; cout << "Insert ncols ..
Recent Comments