#include <iostream>
using namespace std;
void F_1();
int main()
{
cout << "Hello from main.\n";
F_1(); // Call.displayMessage
cout << "Now we are back in the main function again. \n";
system("pause");
return 0;
}
void F_1()
{
cout << "Hello from the F_1 function.\n";
}
【主函数调用子函数的方法】
最新推荐文章于 2024-07-25 11:35:59 发布