End1没有声明C ++

时间:2013-06-11 02:21:52

标签: visual-c++ visual-c++-2010

当我尝试为此程序构建解决方案时,我收到错误End1未为所有end1语句声明。我错过了什么吗?

#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;
}

1 个答案:

答案 0 :(得分:1)

尝试用字母l

替换数字1

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