友好函数
来源:互联网 发布:网络代理url 编辑:程序博客网 时间:2024/04/29 07:37
#include <iostream.h>
#include <string.h>
class Student
{
char name[10];
double chengj;
public:
Student(){}
Student(char n[],double c)
{
strcpy(name,n);
chengj=c;
}
friend void number(Student);
};
void number(Student S1)
{
if(S1.chengj>=80)
cout<<"姓名:"<<S1.name<<endl;
}
void main()
{
Student S1("xiaohua",99);
number(S1);
}
#include <string.h>
class Student
{
char name[10];
double chengj;
public:
Student(){}
Student(char n[],double c)
{
strcpy(name,n);
chengj=c;
}
friend void number(Student);
};
void number(Student S1)
{
if(S1.chengj>=80)
cout<<"姓名:"<<S1.name<<endl;
}
void main()
{
Student S1("xiaohua",99);
number(S1);
}
- 友好函数
- 友好函数
- js处理友好时间函数
- 可重入函数--简述友好版(ZZ)
- 时间戳友好化格式化函数
- 浏览器友好的变量调试输出函数
- 判断友好数对(函数专题)
- ALGO-117友好数函数VIP试题
- zzuli OJ 1105: 判断友好数对(函数专题)
- PHP一种友好的函数传参模式设计
- ZZULIOJ 1105: 判断友好数对(函数专题)
- 1105: 判断友好数对(函数专题)
- 1105: 判断友好数对(函数专题)
- OJ1105: 判断友好数对(函数专题)
- 字符串截取函数,批量上传类,邮件发送函数,友好时间函数
- 友好变量,友好方法,友好类
- 友好提示
- 友好数
- 中国有创新能力吗?
- 64位Ubuntu配置android环境报错(...adb": error=2, 没有那个文件或目录)
- 快排求第k大数
- SQL Server 2008带字段注释导入Power Designer 9.5
- Mergesort-归并排序
- 友好函数
- sql子查询用法
- 电子商务网站SEO的清单
- Singleton 模式
- ie和火狐兼容问题
- 选择 年 月 日后 计算出该月共有几周,动态显示在select中
- 汇编byte ptr[BP]与word ptr[BX]的区别
- setInterval 和 setTimeout 怎样停止
- KVM Autotest 配置文件