I am trying to run a program but it has so many errors. I tried to google the error but it did not help much...Code:-- Error# 1 c:\projects\lm\lm\Parameter.h(53) : error C2872: 'Random' : ambiguous symbol 1> could be 'c:\projects\lm\lm\Random.h(7) : Random' 1> or 'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : System::Random' -- Error# 2 c:\projects\lm\lm\Parameter.h(66) : error C2872: 'Random' : ambiguous symbol 1> could be 'c:\projects\lm\lm\Random.h(7) : Random' 1> or 'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : System::Random' -- Error# 3 1>c:\projects\lm\lm\ParameterList.h(19) : error C2061: syntax error : identifier 'ifstream' Error# 4 1>c:\projects\lm\lm\Neuron.h(17) : error C2143: syntax error : missing ';' before '*' 1>c:\projects\lm\lm\Neuron.h(17) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\projects\lm\lm\Neuron.h(17) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Error# 5 1>c:\projects\lm\lm\Neuron.h(35) : error C2872: 'Random' : ambiguous symbol 1> could be 'c:\projects\lm\lm\Random.h(7) : Random' 1> or 'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : System::Random' 1>c:\projects\lm\lm\Neuron.h(71) : error C2061: syntax error : identifier 'ofstream' 1>c:\projects\lm\lm\Neuron.h(94) : error C2061: syntax error : identifier 'ifstream' 1>c:\projects\lm\lm\Neuron.h(96) : error C2061: syntax error : identifier 'ofstream' 1>c:\projects\lm\lm\Neuron.h(97) : error C2061: syntax error : identifier 'ifstream' 1>c:\projects\lm\lm\RString.h(7) : fatal error C1083: Cannot open include file: 'math': No such file or directory 1>Build log was saved at "file://c:\Projects\LM\LM\Debug\BuildLog.htm" 1>LM - 12 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Error# 1
Error# 2Code:class Parameter{ //##ModelId=3F6DA23701AF int type; //##ModelId=3F6DA23701E1 Random* rnd; char name[20],distr[20]; //##ModelId=3F6DA23701E5 double val[20]; //##ModelId=3F6DA237021C int nextValue; //##ModelId=3F6DA237021D double percent;
Error# 3Code:public: //##ModelId=3F6DA2370253 Parameter(){rnd=new Random();nextValue=0;nextPar=NULL;percent=0;}; //##ModelId=3F6DA2370254 void setName(char *parName){ strcpy(name,parName);
Error# 4Code:int type; //##ModelId=3F6DA23700D2 int readNext(ifstream in,char * tmp);
Code:ifstream *in;It overall seems that the complier is not able to fix the pointer assigned to rnd ....I have attached the intialization of rnd too...Code:Random * rnd;
If u want more segments of the code..please let me knowCode:#include "Random.h" #include <stdlib> #include "math.h" using namespace System; //##ModelId=3F6DA2360295 double Random::rnd01(){ //double rnd01 () {



LinkBack URL
About LinkBacks


