问题及代码:
/*
*Copyright (c) 2016, 烟台大学计算机学院
*All rights reserved.
*文件名称:test.cpp
*作者:李良涵
*完成日期:2016年9月8日
*版本号:v1.0
/*
*Copyright (c) 2016, 烟台大学计算机学院
*All rights reserved.
*文件名称:test.cpp
*作者:李良涵
*完成日期:2016年9月8日
*版本号:v1.0
#include <iostream>
using namespace std;
void name()
{
cout<<"my name is Li Liang han"<<endl;
cout<<"Nice to meet you"<<endl;
}
int main()
{
name();
return 0;
}
运行结果:
知识点总结:
调用函数。
学习心得:
大家好,我是李良涵。