0

当我尝试为该程序构建解决方案时,我收到错误 End1 Not Declaration for all the end1 statements。我错过了什么吗?

#include "StdAfx.h
#include <iostream>

using namespace std;

const double PI = 3.14;

int main()
{


    double circumference;
    double radius;
    double area;


    cout << "Enter the radius: ";

    cin >> radius;
    cout << end1;

    circumference = 2 * PI * radius;

    cout << "Circumference = " << circumference << end1;

    area = PI * radius * radius;

    cout << "Area = " << area << end1;


    return 0;
}
4

2 回答 2

2

尝试用字母 l 替换数字 1

http://en.cppreference.com/w/cpp/io/manip/endl

于 2013-06-11T02:23:32.267 回答
0

用 endl 替换 end1

    cout << "Circumference = " << circumference << endl;
于 2022-01-11T08:07:47.350 回答