SB 新手小问题..........
#include <iostream>int WidthInFeet();
int WidthInInches(int feet);
int main()
{
int feet = WidthInFeet();
int wd = WidthInInches(feet);***************************
std::cout << "Width in inches = " << wd;
return 0;
}
int WidthInFeet()
{
int feet;
std::cout << "Enter width in feet: ";
std::cin >> feet;
return feet;
}
int WidthInInches(int feet)
{
return feet * 12;
}
why 很多星那一行的(feet) 不可是(int feet) ?
畢竟其他 feet 都有 int 在前面,3Q LZ !