How would I create an array of objects (x number of Electrons around a Nucleus)? I have this code thus far:
Is this correct or am I missing something?Code:class Nucleus
{
Electron * eTron;
// Co-ordinates of the WHOLE atom in 3D space
float x, y, z;
Nucleus(int e)
{
eTron = new Electron [e];
}
};
class Electron
{
// Location around Nucleus
float x, y, x;
Electron()
{
}
};