| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3064 人关注过本帖
标题:[求助]判断一个二元关系是不是自反的和对称的
取消只看楼主 加入收藏
wq86731
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-12-18
收藏
 问题点数:0 回复次数:0 
[求助]判断一个二元关系是不是自反的和对称的
一道离散数学的编程题目。大家帮帮忙啊。。。

程序功能:判断一个二元关系是不是自反的和对称的。

输出:Please enter the number of the elements of the domain set:

输入:二元关系所在域的元素的个数(必须是数字)

输出:Please enter the elements of the domain set:

输入:域的元素(必须是数字)

输出:Please enter the number of the elements of the relation R:

输入:二元关系中元素的个数(必须是数字)

输出:Please enter the elements of the relation R:

输入:二元关系的元素(必须是数字组合,不用逗号间隔,不用括号,直接输入数字,中间用空格间隔,元素之间用换行间隔即可)例如:

1 1

2 2

输出:The Relation R is( not )reflexive.

The Relation R is( not )symmetic.


搜索更多相关主题的帖子: 离散数学 elements 关系 Please 数字 
2007-01-02 16:09
快速回复:[求助]判断一个二元关系是不是自反的和对称的
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011514 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved