I'm using a VBO to store my terrain data and displaying it using triangle strips. The problem I have it that it seems to be drawing extra triangles connecting each row to the next column down. I think a easy solution would be to just have it restart the triangle strip at each of the columns.

This is how I fill my VBOs data for displaying. heights is just a vector<vector<float>> that holds columns and rows of heights that I load from a grayscale image. I would just need a way to restart a triangle strip after each time the second for loop finishes.
Code :
for(int z = 0; z < heights.size()-1; z++)
	{
		for(int x = 0; x < heights[0].size()-1; x++)
		{
			vec.push_back(x * tileSize);
			vec.push_back(heights[x][z] * maxHeight);
			vec.push_back(z * tileSize);
 
			vec.push_back(x * tileSize);
			vec.push_back(heights[x][z+1] * maxHeight);
			vec.push_back(z+1 * tileSize);
		}
            //add a new triangle strip here
	}