User Profile
Collapse
-
Nevermind, I figured it out.... -
using a vector of pointers in a for loop - C++
I'm currently getting a illegal direction error when using the following code.
The error is coming up when I set up the for loop
...Code:int saveBook(vector<Address*> a, ofstream& out) { //For loop that writes to the temporary file in the correct //format in order for it to be read in to the progam again //cout << (*a).size(); for(int i = 0; i < (*a).size();
No activity results to display
Show More
Leave a comment: