打印表头函数

#include<iostream>

using namespace std;

 

void TableHead();          //声明打印表头函数

 

int main(){

         TableHead();           //调用打印表头函数

        

         system("pause");

         return 0;

}

 

void TableHead(){

         cout<<' '<<"****************"<<' '<<endl;

         cout<<' '<<"     example    "<<' '<<endl;

         cout<<' '<<"****************"<<' '<<endl;

}

原文地址:https://www.cnblogs.com/huoyuying/p/9672123.html