C++ Pimer Plus(第6版中文)课后编程练习个人代码
2.7
1.
#include <iostream>
using namespace std;
int main()
{
cout << " Name " << endl;
cout << " Address is " << endl;
return 0 ;
}
2.
#include <iostream>
using namespace std;
double Mar(int);
int main()
{
int Long;
cout << " Enter Long : " << endl;
cin >> Long ;
double mar = Mar(Long);
cout << " Mar is : " << mar << endl;
return 0;
}
double Mar(int Long)
{
double Mar;
Mar = Long /220;
return Mar ;
}
3.
#include <iostream>
using namespace std;
void fun1()
{
cout << " Three blind mice " << endl;
}
void fun2()
{
cout << " See how they run &