However, when I compile the code I get this error message
1>y:\windows\dunsonm\documents\visual studio 2008\projects\proj1assist\proj1assist\gaus.cpp(11) : error C2440: '=' : cannot convert from 'double' to 'double *'
1>y:\windows\dunsonm\documents\visual studio 2008\projects\proj1assist\proj1assist\gaus.cpp(12) : error C2440: '=' : cannot convert from 'double' to 'double *'
1>y:\windows\dunsonm\documents\visual studio 2008\projects\proj1assist\proj1assist\gaus.cpp(17) : error C2440: '=' : cannot convert from 'double' to 'double *'
1>y:\windows\dunsonm\documents\visual studio 2008\projects\proj1assist\proj1assist\gaus.cpp(18) : error C2440: '=' : cannot convert from 'double' to 'double *'
1>y:\windows\dunsonm\documents\visual studio 2008\projects\proj1assist\proj1assist\gaus.cpp(19) : error C2440: '=' : cannot convert from 'double' to 'double *'
Does anyone know what I'm doing wrong? I need away to initialize 5 variables that are arrays of doubles. However, I don't think I can declare the members as arrays because they have to get initialized. So I made them pointers to doubles
Are you sure you are passing an array? It seems like you are passing a single double value. Can you paste the code where you call the functions? Can you note the lines where the errors occur ?
I assume you want to copy the contents of the array parameters into the class members. To do this, you need to know how big the caller's array is. Currently, nothing tells you that. If you know, then you can do this: