the problem in C++ code after I add class network32.
Im using OMNET++ network simulator with V.6 service back 6 my code was working perfectly but I had to add another class which is class network32 then I start getting those errors I dont know what I should do
Im having those errors and couldnt solve them any help pls .. I used to have this kind of error C2258: illegal pure syntax, must be '= 0' till I moved this part of my code
CODE int Doarc01::connection[100][100]=0; int Doarc01::newarray[100][100]=0; int Doarc01::pos[100]=0; int Doarc01::ConnCounter=0; int Doarc01::numoflinks=0; double Doarc01::credit1[100][100]=5; double Doarc01::credit2[100][100]=5; double Doarc01::credit3[100][100]=5; double Doarc01::credit4[100][100]=5; double Doarc01::credit5[100][100]=5; double Doarc01::residualBandwidth[100][100]=150; double Doarc01::RejCon=0; double Doarc01::BP=0; double Doarc01::totalBlockedBandwidth=0; double Doarc01::totalCarriedBandwidth=0; double Doarc01::meanServiceTime=83.468;
inside the class but I dont know if what i did is correct it reduce the errors and the errors that Im having now is
gisp.cpp(159) : warning C4183: 'Doarc01': member function definition looks like a ctor, but name does not match enclosing class gisp.cpp(181) : error C2061: syntax error : identifier '__Doarc01__mod_code' gisp.cpp(1473) : fatal error C1004: unexpected end of file found NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. and this is the final draft which gave me the previous errors now :
static int connection[100][100]; static int newarray[100][100]; static int pos[100]; static double RejCon; static int ConnCounter,numoflinks; static double totalBlockedBandwidth; static double connectionRequest; static double BP; static double totalCarriedBandwidth,meanServiceTime;//windowsize static double credit1[100][100],credit2[100][100],credit3[100][100],credit4[100][100],credit5[100][100]; static double residualBandwidth[100][100]; int pinX1[33]; int pinY1[33]; int NumNode; int dimx; int dimy; int edgeDgree; double alpha; double beta; int Kscail; int set[500],pathestimate[500],visited[100],predecessor[100],path[100],candidatepath[20][20];
int destination; int final_index;
class network32 { int window1[windowsize]; int window2[windowsize]; int window3[windowsize]; int window4[windowsize];