C++语言开发示例:07. 调用函数

2024-07-14 10:20:56 2025-02-01 20:30:10 李腾 23 次阅读 0 次点赞

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";
}
本文由人工编写,AI优化,请仔细甄别,转载请注明转自www.hylab.cn,原文地址:C++语言开发示例:07. 调用函数

评论 (0)

登录后发表评论

暂无评论,快来发表第一条评论吧!