// Test02.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
const double pi(3.1415);//符号常量声明,必须赋初值且不可在后面的语句对常量赋值
int radius;
cout<<"Please enter the radius:"<<endl;
cin>>radius;
cout<<"the radius is:"<<radius<<endl;
cout<<"the PI is:"<<pi;
system("Pause");
return 0;
}
点击逐过程调试,便可一条接着一条执行。