I have to assign int values from arrays to a string so I can use the string to display output.
Im getting errors, and I cant find any information in my book or on the web how to do this. If you can just provide me with a tutorial link on how to do this Id be grateful.Code:string Polygon::ShowPolygon() { string displayPoly; for (int h = 0;h < num_points;h += 2) { displayPoly += "(" + points[h] + "," + points[h + 1] + ")"; if (h < num_points) displayPoly += ","; } return displayPoly; }