我有这个代码块抛出几个错误。 我是编码新手,很难理解错误的含义。
void run()
{
double dailyRate = readDouble("Enter your daily rate: ");
int noOfDays = readInt("Enter the number of days: ");
writeFee(calculateFee(dailyRate, noOfDays));
}
错误 CS1503:参数 1:无法从“字符串”转换为“整数”
error CS0266:无法将类型“double”隐式转换为“int”。存在显式转换(您是否缺少转换?)
错误 CS7036:没有给定的参数对应于“Program.writeFee(double, int)”所需的形式参数“n”
如有任何建议或提示,我们将不胜感激。