解决 aka com.chaozh.iReader:style/Theme.AppCompat.Light.NoActionBar) not found.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u013270444/article/details/90609298

我们项目本来是可以编译通过的,但是自从接入了DoraemonKit 之后,就编译不通过。
报错如下:

error: resource style/Theme.AppCompat.NoActionBar (aka com.chaozh.iReader:style/Theme.AppCompat.NoActionBar) not found.
error: resource style/Theme.AppCompat.Light.NoActionBar (aka com.chaozh.iReader:style/Theme.AppCompat.Light.NoActionBar) not found.
error: resource style/Widget.AppCompat.Light.ActionBar.Solid (aka com.chaozh.iReader:style/Widget.AppCompat.Light.ActionBar.Solid) not found.
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/titleTextStyle (aka com.chaozh.iReader:attr/titleTextStyle)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style_overwrite.xml","position":{"startLine":12,"startColumn":4,"startOffset":565,"endLine":14,"endColumn":12,"endOffset":762}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/contentInsetStart (aka com.chaozh.iReader:attr/contentInsetStart)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style_overwrite.xml","position":{"startLine":12,"startColumn":4,"startOffset":565,"endLine":14,"endColumn":12,"endOffset":762}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/contentInsetEnd (aka com.chaozh.iReader:attr/contentInsetEnd)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style_overwrite.xml","position":{"startLine":12,"startColumn":4,"startOffset":565,"endLine":14,"endColumn":12,"endOffset":762}}],"original":"","tool":"AAPT"}
error: resource style/TextAppearance.AppCompat.Widget.ActionBar.Title (aka com.chaozh.iReader:style/TextAppearance.AppCompat.Widget.ActionBar.Title) not found.
error: resource style/Widget.AppCompat.ActionMode (aka com.chaozh.iReader:style/Widget.AppCompat.ActionMode) not found.
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/background (aka com.chaozh.iReader:attr/background)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style_overwrite.xml","position":{"startLine":68,"startColumn":4,"startOffset":3885,"endLine":70,"endColumn":12,"endOffset":4105}}],"original":"","tool":"AAPT"}
error: resource style/Base.DialogWindowTitle.AppCompat (aka com.chaozh.iReader:style/Base.DialogWindowTitle.AppCompat) not found.
error: resource style/Base.DialogWindowTitleBackground.AppCompat (aka com.chaozh.iReader:style/Base.DialogWindowTitleBackground.AppCompat) not found.
error: resource style/Widget.AppCompat.Light.ActionButton.Overflow (aka com.chaozh.iReader:style/Widget.AppCompat.Light.ActionButton.Overflow) not found.
error: resource style/TextAppearance.AppCompat.Title (aka com.chaozh.iReader:style/TextAppearance.AppCompat.Title) not found.
error: resource style/ThemeOverlay.AppCompat.Dialog.Alert (aka com.chaozh.iReader:style/ThemeOverlay.AppCompat.Dialog.Alert) not found.
error: resource style/TextAppearance.Widget.AppCompat.Toolbar.Title (aka com.chaozh.iReader:style/TextAppearance.Widget.AppCompat.Toolbar.Title) not found.
error: resource style/Widget.AppCompat.Toolbar (aka com.chaozh.iReader:style/Widget.AppCompat.Toolbar) not found.
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/contentInsetStart (aka com.chaozh.iReader:attr/contentInsetStart)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style.xml","position":{"startLine":312,"startColumn":4,"startOffset":15493,"endLine":317,"endColumn":12,"endOffset":15751}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/contentInsetEnd (aka com.chaozh.iReader:attr/contentInsetEnd)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style.xml","position":{"startLine":312,"startColumn":4,"startOffset":15493,"endLine":317,"endColumn":12,"endOffset":15751}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"error: style attribute \u0027attr/contentInsetStartWithNavigation (aka com.chaozh.iReader:attr/contentInsetStartWithNavigation)\u0027 not found.","sources":[{"file":"F:\\git\\iReader_vivo\\iReader\\src\\main\\res\\values\\style.xml","position":{"startLine":312,"startColumn":4,"startOffset":15493,"endLine":317,"endColumn":12,"endOffset":15751}}],"original":"","tool":"AAPT"}
:iReader:processVivoDebugResources FAILED
:iReader:processVivoDebugResources spend 791ms

最后查的原因是:使用了aspectj 插件。

apply plugin: 'android-aspectjx'

classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4'

去掉之后就可以了。但是几天前我还可以编译通过。不知道为什么。花了两天的时间,一点一点的注释代码去排查。
没有办法,走到了知识盲区里面。

后来发现,有问题的时候,依赖的是appcompat.jar,没有问题的时候依赖的是appcompat.aar。Jar 里面肯定没有style 样式文件,只有Aar 里面才有。截图如下:

有问题的:

在这里插入图片描述

没问题的:

在这里插入图片描述

但是为什么会这样,还是和沪江的插件有关系,用com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4 有问题,用com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.5 就好了。

一个查看依赖的方法:

他会告诉你,依赖的是aar 还是jar
在这里插入图片描述

展开阅读全文

aka安全活动通知

05-21

!!!这是阿卡最新活动的通知,欢迎您能如约前来。rnrn 同时如果您能将这个消息转帖到您熟悉的网上相关主题的技术论坛、新闻组rn或BBS上,以便更多的朋友知道这个消息,我们将不胜感激。多谢多谢!rn 如果要从该列表中退出或者想让你的好朋友加入这个列表,请访问:rnhttp://www.aka.org.cn/ ,网站上有详细的方法,谢谢。rn--------------------------------------------------------------------rnrn【AKA】安全沙龙--DDOS演示技术讨论rn rn rn rn 嘉宾:徐一丁rn 2002年5月26日rn 周日rn 下午两点,北航。rn rn rn rnrnrn一 AKA 安全沙龙的活动安排rn=======================================================rnAKA 网络安全以讨论信息系统安全相关的话题为主题,希望能在计算机信息安rn全(数据安全)、系统安全和网络安全方面做更多的交流,通过交流,提高技术。rnAKA 是以自由,协作为主旨的,我们的沙龙也将是完全开放的民间自发组织,rn无论你是黑帽,红帽,蓝帽,欢迎各路安全人员参加。rnrn我们安全沙龙以自由交流为主。同时希望在安全方面有研究的学者,安全专家能rn参与我们的沙龙,成为我们安全沙龙的嘉宾,来沙龙讲讲您的产品、研究进展以rn及技术。希望我们共同在信息安全方面有所学,有所得。rnrnrnrnrn二. 本次沙龙的地点rn=======================================================rn北京航空航天大学 经济管理学院 案例实验室 rn联系人:王嘉兴 电话:82317837 手机:13601366506rn地址:海淀区学院路37号rn乘车路线:坐375、386、375支线、944、392、398、902、748、749、810、北京航空航天大学站下车,rn331学院路站下车,即是北航东门(正门)。坐47路、16路支线、944支线展春园站下车,向西100米四环路南,rn即北航北门。rn经管学院案例实验室地点:北航教学区内靠近教学区北门,经管学院楼二层。 rn=======================================================rn北 四 环rn_____________________________________16路支线展春园站___________________________rnrn=>北门<========================================================================rn| ! |rn| ! |rn| ! |rn| ! |rn| ! |________rn| ! | |rn| ! |第五食堂|rn| ! |________| | |rn| ! |______ ____ _____ | |rn| ! |青年教| | | | | | | 学rn| ! |师公寓| |13楼| |12楼 | | |rn| ! |______| |____| |_____| V_________________________四号楼__三号楼______| rn| 院rn| !-------------------------学区+----------------------------------------+ |rn| _____________________ 北门| ____________ _______ ____ | | 路rn| | | A | | | | | ~~~~~ | | | |rn| | | | +>|经济管理学院| | | | | | |rn| | | | |____________| | 学术 | 绿地 |主楼| | Vrn| | | | | | |报告厅| | | |--东门rn| | | / \ | | | | Arn| | | | ★ |案例 | | | | |rn| | | \______/实验室 | | ~~~~~ |____| | 331rn | 375rn | 车站rn |rn |rn |rn Vrn 东南门rn Arn |rn rnrnrn三. 沙龙活动安排:rn=======================================================rn 1。参加沙龙的人必须填写一个登记表。rn 2。沙龙结束后,会组织愿意长期参与AKA沙龙活动的部分朋友,以及业内人rn士深入探讨,请有意者到时候和yu_daniel联系。rn yu_daniel@sohu.comrnrn====================================rn四。沙龙人员扩充通知rn=======================================================rnhttp://aka.org.cn/Shalong/20020113/SG_enlarge.txtrn=======================================================rnrn五. 沙龙的网站和历史rn=======================================================rn http://aka.org.cn/SecuSalon/main.htmrn rnrn自由、协作、创造 — 为了明天rn欢迎访问:http://www.aka.org.cn rn“来自大雪山的大雁阿卡”rnrnrnrn/------------------------------------------------\rn| 自由、协作、创造 — 为了明天 |rn| 欢迎访问:http://www.aka.org.cn |rn| “来自大雪山的大雁阿卡” |rn\------------------------------------------------/rn 论坛

aka活动通知

05-14

!!!这是阿卡最新活动的通知,欢迎您能如约前来。rnrn 同时如果您能将这个消息转帖到您熟悉的网上相关主题的技术论坛、新闻组rn或BBS上,以便更多的朋友知道这个消息,我们将不胜感激。多谢多谢!rn 如果要从该列表中退出或者想让你的好朋友加入这个列表,请访问:rnhttp://www.aka.org.cn/ ,网站上有详细的方法,谢谢。rn--------------------------------------------------------------------rnrn============================================================================rnrn 【 IT 先 锋 系 列 研 讨 会---WEB服务】 rn http://www.akaer.org rnrn 《 WEB服务的开发与应用策略 》 rnrn============================================================================rnrn rn一. 时 间 地 点: rnrn 时 间 rn【 2002 年 5 月 18 日 周六 下午 2 点 】 rnrn地 点 rn【 中科院声学所DSP大楼 四楼多功能厅 】 rn 具体方位见 http://www.akaer.org/activity/adress.htmrnrn rnrn二. 主 持 人: rnrn 徐 毅 - AKA 沙龙成员rn mobile:13621143460rn E-MAIL: xuas@akaer.org rnrn三. 简介rnrn 技术重点:J2EE、XML、SOAP、WSDL、UDDI、Web服务rnrn 背景:这是AKA沙龙IT 先 锋 系 列 研 讨 会---WEB服务,本期研讨会的主讲人rn 来自SilverStream软件(北京)有限公司。美国SilverStream软件公司是一家在rn J2EE和webservice技术方面领先的世界级软件公司。rnrn 内容:知识+工具=自由驾驭。通过我们为您精心准备的免费Web Services技术研rn 讨会,您将了解到如何创建、配置和部署支持Web Services的J2EE应用。 rnrn 在研讨会现场,您将了解到Web Services开发、部署和使用的最新的知识,包括: rnrn * 使用WSDL描述Web Services rn * 使用UDDI注册Web Services rn * 使用SOAP开发和访问Web Services rn * 将Web Services部署到标准J2EE应用服务器上,如:SilverStream rn Application Server、IBM WebSphere、BEA WebLogic等等 rnrn四.主讲人介绍: rnrn李渊明,男,1990年毕业于中国科技大学计算机系,历任中国科学院软件研究所工rn程师、高级工程师,中国科学院软件研究所下属北京特宝科计算机工程有限责任公rn司总工程师,北京中科银牛网络技术有限公司总经理,外商独资北京银系美有限公rn司首席技术官,在组合框架式应用体系结构,Web应用服务器, 面向服务的应用, rnWeb服务等方向有较多研究。rnrn五.技术支持和免费技术资料 rnrn技术支持厂商----北京银系美软件有限公司 http://www.silverstream.com.cnrn现场提供Silverstream eXtend software 光碟--java 集成开发工具和文档供大rn家研究用。rnrn----------------------------------------------------------------------rn特别提示:rn Silverstream是商用软件,版权属于Silverstream公司,关于相关技术和产rn品的应用请和Silverstream公司联系,我们只对技术交流负责,不对商业应用负责。rnrn---------------------------------------------------------------------- rnrn内容提纲请关注 rnrnhttp://www.akaer.org/ rnrnhttp://www.aka.org.cn 上去查询。 rnrn随时获得最新的研讨会信息?请登记我们的邮件列表(http://www.akaer.org)。rnrn加入我们?email to : xuas@akaer.orgrnrnrnrn/------------------------------------------------\rn| 自由、协作、创造 — 为了明天 |rn| 欢迎访问:http://www.aka.org.cn |rn| “来自大雪山的大雁阿卡” |rn\------------------------------------------------/rn 论坛

freeradius下AKA与SIM的问题

09-21

freeradius已搭建。可获取手机发送的包。rn但现在问题是,无论是sim验证还是aka验证,服务器只要一获得请求便立即拒绝。rnsecret是正确的,主要是提示 rn1.无start。 实际上第一个手机发送的包应当是有start的。rn2.sim下找不到rand1,aka下找不到rand。我曾经调试过程序,各种key都是空的。此时手机其实还没有发送key呢。rn所以就这么悲剧了。接到第一个请求包直接回送reject,后边的respond challenge都没出现过。rn但我用终端运行eapradclient测试sim是成功的(aka算法还没完成)rn还望有这方面经验的朋友不吝赐教。rnrn附:服务器端部分错误信息rnrn[color=#FF0000][eap] EAP packet type response id 0 length 21rn[eap] No EAP Start, assuming it's an on-going EAP conversation[/color]rn++[eap] returns updatedrn++[files] returns nooprn[sql] expand: %User-Name -> 0460011032624046rn[sql] sql_set_user escaped user --> '0460011032624046'rnrlm_sql (sql): Reserving sql socket id: 0rn[sql] expand: SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%SQL-User-Name' ORDER BY id -> SELECT id, username, attribute, value, op FROM radcheck WHERE username = '0460011032624046' ORDER BY idrn[sql] expand: SELECT groupname FROM radusergroup WHERE username = '%SQL-User-Name' ORDER BY priority -> SELECT groupname FROM radusergroup WHERE username = '0460011032624046' ORDER BY priorityrnrlm_sql (sql): Released sql socket id: 0rn[sql] User 0460011032624046 not foundrn++[sql] returns notfoundrn++[expiration] returns nooprn++[logintime] returns nooprn[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.rn++[pap] returns nooprnFound Auth-Type = EAPrn# Executing group from file /usr/local/etc/raddb/sites-enabled/defaultrn+- entering group EAP ...rn[eap] EAP Identityrn[eap] processing type simrn[color=#FF0000]can not initiate sim, no RAND1 attributern[eap] Default EAP type sim failed in initiatern[eap] Failed in EAP select[/color] 论坛

Aka】 基于组件的系统架构设计(讲座)

05-27

!!!这是阿卡最新活动的通知,欢迎您能如约前来。rnrn 同时如果您能将这个消息转帖到您熟悉的网上相关主题的技术论坛、新闻组rn或BBS上,以便更多的朋友知道这个消息,我们将不胜感激。多谢多谢!rn 如果要从该列表中退出或者想让你的好朋友加入这个列表,请访问:rnhttp://www.aka.org.cn/ ,网站上有详细的方法,谢谢。rn--------------------------------------------------------------------rnrn研讨会是免费开放的,你只需要在现场填写一个登记表就可以了。rnrn关于我们的宗旨,活动形式,现场免费技术资料,联络方法等信息,请到网站:rnhttp://www.akaer.org 上查询。rn=====================================================================rnrn 【 IT 先 锋 系 列 研 讨 会 】 rn http://www.akaer.org rn 《 基于组件的系统架构设计 》 rnrn====================================================================== rnrn时 间 rn【 2002 年 6 月 2 日 周 日 下午 2 点 】 rnrn地 点 rn【 学研大厦 二楼多功能厅 】 rnrn具体方位见http://www.akaer.org/activity/adress.htm(请注意场地位置)rnrn一、主 持 人: rnrn徐 毅 - AKA 沙龙成员  mobile:13621143460  E-MAIL: xuas@akaer.org rnrn二、简介rnrn技术重点:UML、J2EE、XML、、Web服务rnrn听众: 项目管理,系统架构设计师rnrn背景:这是AKA沙龙IT 先 锋 系 列 研 讨 会---基于组件的系统架构设计,本期rn研讨会的主讲人来自beans软件(北京)有限公司。beans软件公司是一家在组件rn技术方面领先的世界级软件公司。rnrn内容:基于J2EE平台和XML标准,使用UML设计系统架构rnrn1. What is a frameworkrn2. Types of frameworkrn3. Overview of Component based solutionrn4. A framework called Kernlrn5. Overview of Kernlrn6. Usage scenarios of Kernlrn- EAI with JMSrn- Use of Hub and Spokern- Use of Web servicesrnrn三、主讲人介绍: rnrnTay Chee Chong:rnrn听众可以使用中英文两种语言和主讲人交流。rnrnGraduated in 1995.rnrnBachelor of Science, Information Systems and Computer Science rnrnNational University of SingaporernrnResponsible for product management of Kernl, which is a J2EE framework rnfor multi-channel enterprise application development. Required to define rnproduct directions and requirements as well as working with the product rndevelopment team to ensure successful implementation of the requirements. rnCoordinate with the marketing team on product launches, product-related rnevents, training and seminars.rnrnCompleted and involved in projects as follows:rnrnInvolved in a large bank project that aims to centralize processes across rnborders and business units into a single operating model. This business rnmodel will maximize the benefits of lower cost locations and exploits rnthe economies of scale and synergies available from converging business rnprocesses. Main role as a Solution Architect to provide design and rnarchitect EJB solutions based on Kernl framework. The Kernel framework rnis deployed on IBM AIX and WebSphere 3.5 with integration to IBM products rnlike MQ Series, DB2, MQ Workflow and Content Manager document management. rnInterfaces to mainframe systems are done through MQ adapters.rnrnParticipated in a big-scale national project for the Hong Kong (HK) rngovernment. Working as a Solution Architect to define the integration rnpoints between the Kernl framework, Filenet and external devices like rndocument scanner, barcode and fingerprint scanner and digital camera. rnAn extensive benchmark activity is conducted with the HK government rnto exhibit the load handling and performance that Kernl has. As a prove rnof technology, a Workflow system for the project is built using Kernl rnrunning on IBM AIX, WebLogic 6 and Oracle.rnrn四、技术支持和免费技术资料 rnrn---------------------------------------------------------------------- rnrn技术支持厂商----北京贝恩斯软件有限公司 http://www.beansfactory.com.rnrn现场提供文档供大家研究用。rnrnhttp://www.akaer.org/ rnrnhttp://www.aka.org.cn 上去查询。 rnrn随时获得最新的研讨会信息,请登记我们的邮件列表(http://www.akaer.org)。rnrn加入我们 email to : xuas@akaer.orgrnrnrnrnrnrn--http://www.eyou.comrn--稳定可靠的免费电子信箱 语音邮件 移动书签 日历服务 网络存储...亿邮未尽rnrnrn/------------------------------------------------\rn| 自由、协作、创造 — 为了明天 |rn| 欢迎访问:http://www.aka.org.cn |rn| “来自大雪山的大雁阿卡” |rn\------------------------------------------------/rn 论坛

18 Wheeler Caravans (aka Semigroups)

02-26

A binary operation on a set S is a function that assigns to each ordered pair of elements of S a unique element of S. We often use some special symbol (such as * or +) to represent a binary operation. For example, if we use the symbol '#' to represent some arbitrary binary operation on the set S = a, b, c, then a#b equals some element of S (as does b#a, a#a, a#c, and every other possible permutation).nFrom the above definition, it would follow that the normal definitions for addition, subtraction, and multiplication are all binary operations when defined on the set of all integers. However, division (the mathematical kind - not "integer division") is not a binary operation for the set of integers, since 1=2 = 0.5 which is not an integer.nnThe use of the word "ordered" in the definition for binary operations is important, for it allows the possibility that the element assigned to a#b may be different from the one assigned to b#a. In the case of integers, this is evident with the binary operation we know as subtraction, since 5 - 3 is not equal to 3 - 5. If in a particular case, x # y = y # x for all elements x and y in the set, we say that the binary operation is commutative. The standard addition operation on the set of integers is commutative.nnFor the remainder of this problem we will only concern ourselves with small sets (1 to 26 elements). For small sets such as these, the unique assignments that define an operation can be expressed by simply writing down all possible assignments in a "multiplication" table. For instance, the binary operation '#' on the set S = a, b, c might be defined by:nn# | a b cn---------na | b c bnb | a c bnc | c b annThe left column of the table represents the first number in an ordered pair, and the top row represents the second. Thus, in this example, a # b = c, b # a = a, and c # c = a. Notice that the body of the table consists solely of elements from the set S, which must be true for any binary operation. Also notice that this operation is not commutative, since b # a is not equal to a # b.nnA binary operation, #, on a set S is associative if (x#y)#z = x#(y#z) for all elements x, y, and z in the set X. In the example with the table above, the operation is not associative, since (a#b)#c is not equal to a#(b#c). If a binary operation, #, on a set is associative, then we say that the pair forms a semigroup. If the binary operation is commutative as well as associative, then we say that the semigroup is commutative.nnnInputnnWrite a program that will read the elements of sets together with corresponding "multiplication" tables which denote possible binary operations. Your program should then determine if the set S with the defined operation constitutes a semigroup. If the set and corresponding table do not form a semigroup, your program should report that the pair do not form a semigroup and state why. If the set and operation pair do form a semigroup, your program should check to see if the semigroup is also a commutative semigroup.nnThus, for each set and corresponding table one of the following four results is possible:nnNOT A SEMIGROUP: x#y = z WHICH IS NOT AN ELEMENT OF THE SETnNOT A SEMIGROUP: (x#y)#z IS NOT EQUAL TO x#(y#z)nSEMIGROUP BUT NOT COMMUTATIVE (x#y IS NOT EQUAL TO y#x)nCOMMUTATIVE SEMIGROUPnnIn the first three results you should substitute actual elements of the set that yield a counter-example to the definitions for a semigroup and a commutative operation. If more than one counter-example exist, choose the lexicographically first one.nnThe first line of the input file contains a single integer, n where (1 <= n <= 26).nnThe next line of the input file will contain n unique, lower case letters of the alphabet. These letters represent the elements of the set. Although each letter is unique (no duplicates), they are not necessarily arranged in alphabetical order.nnThe next n lines contain the body of the "multiplication" table that corresponds to the elements in the previous line. Each of these lines will contain n lower case letters. For example, the first such line corresponds to the first row of the body of the table. We will assume that the ordering of the rows and columns of the table coincide with the ordering in the line that defines the elements of the set.nnAfter the table, the input file will contain a line with a single integer, n where (0 <= n <= 26). If n > 0 then there is another set and corresponding table contained in the next n + 1 lines that should be reported. If n = 0 then you have reached the end of the input file.nnnOutputnnThe output file should contain the following for each set and table found in the input file:nn1. List of the elements of S in same order as found in the input file using the following format: S = a,b,c,dnn2. A line that starts with a space followed by the characters '#|' followed by the n elements of the set (no spaces or commas). For example: #|abcdnn3. A line that begins with a space followed by the characters '-+' followed by n more dashes '-'. For example: -+----nn4. List of the n rows and columns of the "multiplication" table in the same order as found in the input file. The ith line of the table should begin with a space followed by the ith element of the set followed by the '|' character followed by the n characters in the ith row of the body of the table (no spaces). For example: a|abcdnn5. One blank line.nn6. One line that reports what your program found to be true. This must be one of the four possible results listed above.nn7. A line of 30 dashes.nn8. One blank line to separate this report from subsequent reports.nnnSample Inputnn3nabcnabcnbcancabn3nabcnabcnbcancadn4nacdbnaaaanaacanaadanaaabn5nabcdenaaaaanbbabbncccbcndddddneeeeen0nnnSample OutputnnS = a,b,cn #|abc n -+---n a|abcn b|bcan c|cabnnCOMMUTATIVE SEMIGROUPn------------------------------nnS = a,b,cn #|abcn -+---n a|abcn b|bcan c|cadnnNOT A SEMIGROUP: c#c = d WHICH IS NOT AN ELEMENT OF THE SETn------------------------------nnS = a,c,d,bn #|acdbn -+----n a|aaaan c|aacan d|aadan b|aaabnnSEMIGROUP BUT NOT COMMUTATIVE (c#d IS NOT EQUAL TO d#c)n------------------------------nnS = a,b,c,d,en #|abcde n -+-----n a|aaaaa n b|bbabb n c|cccbc n d|ddddd n e|eeeee 问答

没有更多推荐了,返回首页