Hi All,
I'm having a bit of trouble with a simulation I am writing in C++. Any help to solve the problem would be appreciated.
The simuation needs to run 5500000000 times.
When it gets to 2100000000, the counter I am using changes to -210000000. So as you can see, it will never finsh and do what I want.
I presume this is to do with how I have declared the variables, but am unsure of how to solve this.
Selected code below
int clock = 0;
// Start the simulation
while(clock < simulationlength)
{
//arrival process on the corporate links
if (clock % 4 == 0)
{
Hope you can help.
Cheers