include <iostream>
using namespace std;
define PI 3.14159
define NEWLINE '\n'
int main ()
{
double r=5.0; // radius
double circle;
circle = 2 * PI * r;
cout << circle;
cout << NEWLINE;
}
include <iostream>
using namespace std;
define PI 3.14159
define NEWLINE '\n'
int main ()
{
double r=5.0; // radius
double circle;
circle = 2 * PI * r;
cout << circle;
cout << NEWLINE;
}
本文标题:定义常数的另一种方法 e.g. PI
本文链接:https://www.haomeiwen.com/subject/osudsxtx.html
网友评论