标签: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; }
标签:main 陕西 理工大学 lease value gre please run ase
原文地址:http://www.cnblogs.com/Zhz0306/p/7479063.html