嗨,我正在编写这个程序,但我什至无法开始查看其他代码是否有问题。
我有这个:
int main()
{
int answer;
int test;
cout << "Please Enter the number to be tested: ";
cin >> test; //Gets number to be tested
cout << "here";
answer = factor(test);
cout << "The answer is:" << answer;
return 0;
}
接着。它会打印出第一个 cout,然后它会到达 cin,获取数字但不会做任何事情。甚至不会打印第二个 cout。有任何想法吗?
我很新,并没有真正做太多,所以欢迎任何额外的把我当作白痴的解释。:D 谢谢。