⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex_275.cpp

📁 本代码给出了C++经典教程《C++ Primer Plus》第二章的课后编程练习
💻 CPP
字号:
// Ex_275.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
using namespace std;

double lgtou(double n);


int main(int argc, char* argv[])
{
	double lg;
	cout<<"Enter the number of light years:";
	cin>>lg;
	cout<<lg<<" light years are "<<lgtou(lg)<<" astronomical units.\n";
	return 0;
}

double lgtou(double n)
{
	return 63240*n;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -