c++自定义函数
来源:互联网 发布:mac os 10.13.1黑苹果 编辑:程序博客网 时间:2024/06/12 23:21
#include <iostream>
#include <cmath>
using namespace std;
void test(int);//定义一个无返回值的函数test原型 参数类型为int
int main() {
int count;
cout << "请输入一个整数" << endl;
cin >> count;
test(count);
return 0;
}
//test函数源代码
void test(int n){
cout << "你输入的数字是:" << n << endl;
}
#include <cmath>
using namespace std;
void test(int);//定义一个无返回值的函数test原型 参数类型为int
int main() {
int count;
cout << "请输入一个整数" << endl;
cin >> count;
test(count);
return 0;
}
//test函数源代码
void test(int n){
cout << "你输入的数字是:" << n << endl;
}
0 0
- C 自定义输入函数
- c语言自定义函数大全
- C语言中自定义函数
- db2 编译C 自定义函数
- Linux C 自定义延时函数
- 74 C语言自定义函数
- C常用自定义函数集锦
- C语言:自定义字符串函数
- C语言自定义函数细节
- C语言:自定义函数/字符串函数
- [C/C++]map自定义比较函数
- [C/C++]map自定义比较函数
- C语言:自定义格式时间函数
- 自定义的InputBox函数(C#)
- c 调用 matlab engine 自定义函数
- postgresql 多行变一行,C语言自定义函数
- DB2自定义函数(C语言)实战
- DB2自定义函数(C语言)
- Linux下安装搜狗拼音
- STM32 中断优先级相关概念与使用笔记
- 字符串常量到底存放在哪个存储区
- Android Fragment的使用
- Collection 集合练习作业
- c++自定义函数
- shell 编程--变量
- Linux中硬连接与符号连接的区别
- 2013级Java第1周(春)项目——一个简单的考勤签到程序
- 数组元素循环右移问题
- C++中的指针与引用
- 多线程同步调试1
- Java中重载和覆盖
- struts2的global-results