1:代码如下:

// 4.1.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <iostream>
using namespace std;
void ShowMessage();    //函数声明语句
void ShowAge();        //函数声明语句
void ShowIndex();        //函数声明语句
void main()
{
    ShowMessage();    //函数调用语句
    ShowAge();        //函数调用语句
    ShowIndex();        //函数调用语句
}
void ShowMessage()
{
    cout << "HelloWorld!" << endl;
}
void ShowAge()
{
    int iAge=23;
    cout << "age is :" << iAge << endl;
}
void ShowIndex()
{
    int iIndex=10;
    cout << "Index is :" << iIndex << endl;
}
View Code

相关文章:

  • 2022-02-21
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2021-05-27
  • 2022-02-20
  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案