page182
来源:互联网 发布:淘宝刷好评兼职怎么做 编辑:程序博客网 时间:2024/06/06 05:51
// page182.cpp : 定义控制台应用程序的入口点。
//C++面向对象程序设计
//这是一个练习
#include "stdafx.h"
#include <iostream>
void friendly();
void shy(int audience_count );
int _tmain(int argc, _TCHAR* argv[])
{
int a;
using namespace std ;
friendly();
shy(6);
cout << " One more time:\n";
friendly();
cout << " End of program.\n";
cin >> a;
return 0;
}
void friendly()
{
using namespace std ;
cout << " Hello\n";
}
void shy(int audience_count)
{
using namespace std ;
if(audience_count < 5)
return ;
cout<< " Goodbye\n";
}