码迷,mamicode.com
首页 > 其他好文 > 详细

ch2

时间:2017-09-05 16:52:40      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:main   陕西   理工大学   lease   value   gre   please   run   ase   

#include<iostream>
int main() 
{
    using std::cout;
    using std::endl;
    cout << "章后涨" << endl << "陕西理工大学" << endl;
    return 0; 
}
#include<iostream>
int main() {
    using namespace std;
    double l,m;
    cin >> l;
    m = l*220;
    cout << m << endl;
    return 0;
    
}
#include<iostream>
using namespace std;
void f1(void);
void f2(void);
int main() {
    f1();
    f1();
    f2();
    f2();
    return 0;
}
void f1(void) {
    cout << "There blind mice" << endl;
}
void f2(void) {
    cout << "See how they run" << endl;
}
#include<iostream>
double f(double);
int main() {
    using namespace std;
    double s,h;
    cout << "Please enter a Celsius value: ";
    cin >> s;
    cout << s << " degrees Celsius is " << f(s) << " degrees Fahrenheit." << endl;
    return 0;
} 
double f(double n) {
    return 1.8*n+32.0;
}
#include<iostream>
double f(double);
int main() {
    double g;
    std::cout << "Enter the number of light years: ";
    std::cin >> g;
    std::cout << g << " light years = " << f(g) << " astronomical units." << std::endl;
    return 0 ;
}
double f(double n) {
    return n*63240;
}
#include<iostream>
void f(int a,int b);
using namespace std;
int main() {
    int a,b;
    cin >> a >> b;
    f(a,b);
    return 0;
}
void f(int a,int b) {
    cout << "Enter the number of hours: "
        << a << endl
        << "Enter the number of minutes: "
        << b << endl
        << "Times: "
        << a << ":" << b << endl;
}

 

ch2

标签:main   陕西   理工大学   lease   value   gre   please   run   ase   

原文地址:http://www.cnblogs.com/Zhz0306/p/7479063.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!