07. 调用函数

创建日期:2024-07-14
更新日期:2025-02-01

calling.cpp

#include <iostream>

void simple();

int main()
{
    using namespace std;
    cout << "main() will call the simple() function:\n";
    simple();
    cout << "main() is finished with the simple() function.\n";
}

void simple()
{
    using namespace std;
    cout << "I'm but a simple function.\n";
}