#include <iostream>#include <cmath.h>int main(){ using namespace std; double area; cout << "Enter the floor area,insquare feet,of your home:"; cin << area; double side; side = sqrt(area); cout << "that's the equivalent of a square << "feet to the side."<<endl; cout << "How fasciting!"<<endl; return 0;}
[解决办法] cout << "that's the equivalent of a square << "feet to the side."<<endl; square后面掉了引号
[解决办法] #include <iostream> #include <cmath>
int main() { using namespace std;
double area; cout << "Enter the floor area,insquare feet,of your home:"; cin >> area; double side; side = sqrt(area); cout << "that's the equivalent of a square" << "feet to the side."<<endl; cout << "How fasciting!"<<endl;