当我尝试运行这个程序时,我不断收到无限循环错误。谁能帮助我并告诉我为什么?任何帮助将不胜感激。谢谢!
void Increment(int);
int main()
{
int count = 1;
while(count < 10)
cout << "the number after " << count; //Increment function
Increment(count); //count+1
cout << " is " << count << endl;
return 0;
}
void Increment (int nextNumber)
{
nextNumber++; //parameter +1
}