Original Post
I am trying to use the ''new'' command in C++ rather than using ''malloc'', I''ve been told it replaces ''malloc'' in C++. Anyway, this is the line that is has a problem with.
loadRen.pVertex[count] = new CVertex;
It is in a for loop so that I can create a new CVertex each loop.
This is the error that I am getting:
binary ''='' : no operator defined which takes a right-hand operand of type ''class CVertex *'' (or there is no acceptable conversion)
I''m sure its probably something simple, but I can''t figure it out. Is there a libary I should be adding? I have:
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Any ideas?
--Dannon