C++输入与逐过程调试

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

点击逐过程调试,便可一条接着一条执行。

猜你喜欢

转载自blog.csdn.net/weixin_40903417/article/details/86500854