第一周编码请善待。
我需要从用户那里获得 4 个输入,如果其中 2 个是-100我需要功能来说明你失败了。
我需要实现function here并可能在里面添加一个计数器,但我不知道如何。
代码看起来像这样
cout << "What are the grades of your 4 take-home exams? ";
cin >>th1>>th2>>th3>>th4;
function here
Run Code Online (Sandbox Code Playgroud)