EF通用类报错 --求大神指导 [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs4
本版专家分:1211
Bbs8
本版专家分:49388
版主
Blank
黄花 2017年11月 .NET技术大版内专家分月排行榜第二
2017年10月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2018年8月 .NET技术大版内专家分月排行榜第三
2018年6月 .NET技术大版内专家分月排行榜第三
2018年3月 .NET技术大版内专家分月排行榜第三
2017年12月 .NET技术大版内专家分月排行榜第三
2017年9月 .NET技术大版内专家分月排行榜第三
Bbs1
本版专家分:0
MVC EF 修改 封装类 通用泛型方法
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Entity.Infrastructure; using System.Data.Entity; namespace DAL { public class EF_Help {
EF5 通用数据层 增删改查操作,泛型类
using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure; using System.Linq; using System.Linq.Expressions; using System.R<em>ef</em>lection; using System.Text; namespace P04DA
entity framework 6 自己编写的通用数据类
//dal类: public class BaseDAL { string strConn = ""; public BaseDAL(string connString) { strConn = connString; } #region <em>通用</em>增删改查 #region
EF通用数据层封装类(支持读写分离,一主多从)
阅读目录 浅谈orm浅谈Entity FrameworkEntity Framework <em>通用</em>数据层类扩展类,实现读写分离进一步改造,实现多从库读取参考文章源码分享 回到顶部 浅谈orm   记得四年前在学校第一次接触到 Ling to Sql,那时候瞬间发现不用手写sql语句是多么的方便,后面慢慢的接触了许多orm框架,像 EF,Dapper,Hibernate,Service
EF学习笔记——通用增删改查方案
我刚接触EF未久,还不知道它有什么强大的功能
EF 增删查改封装 | EF通用增删查改封装
支持多条件查询的扩展 ExpressionExtensions.cs类using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace System { /// &amp;lt;summary&amp;gt; /// 谓词表达式构建器 /// &amp;lt;/summary&amp;...
基于MFC ppi计算器
新手自己写的ppi计算器,开发环境:vs2010 win8.1 ,求<em>指导</em>,求<em>大神</em><em>指导</em>
js报错,求大神指导!!!
这两个错弄了我一上午。。。<em>大神</em>求帮忙!!!![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114064_996249.png)n![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114077_913005.png)n![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114089_7884.png)n![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114098_336267.png)
ef操作基类示例
我为自己买盗版视频感到后悔,请看我上一篇文章,所以奉劝大家不要去买这个人的所有视频 下面送上<em>ef</em>操作基类public partial class BaseDal where T:class { //DbContext context=new HM13OAContainer(); private DbContext
大神指导大神指导大神指导
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CSpeechRecognition1::CSpeechRecognition1(void)" (??0CSpeechRecognition1@@QAE@XZ),该符号在函数 "public: __thiscall main::main(class CWnd *)" (??0main@@QAE@PAVCWnd@@@Z) 中被引用rn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall main::OnInitDiaLog(void)" (?OnInitDiaLog@main@@UAEHXZ)rn1>main.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall CSpeechRecognition1::~CSpeechRecognition1(void)" (??1CSpeechRecognition1@@UAE@XZ),该符号在函数 "public: virtual __thiscall main::~main(void)" (??1main@@UAE@XZ) 中被引用rn1>D:\tttttt\RecordSpeech\Debug\RecordSpeech.exe : fatal error LNK1120: 3 个无法解析的外部命令
菜鸟级三层框架(EF+MVC)项目实战之 系列三 业务逻辑层封装
概述:业务逻辑层封装相对数据访问层来说较为简单,我们分为以下几步:          1、抽象基接口定义CRUD方法          2、应用T4模版生成所有实体接口          3、接口实现 一、接口定义      1.1、创建名为Cnblogs.Rdst.IBLL的程序集,主要用于业务逻辑层接口定义              并引用Cnblogs.R
EF 具有继承关系的类到数据库表的映射
类C:B:A在DBContext中public DbSet&amp;lt;A&amp;gt; As{get;set;}public DbSet&amp;lt;B&amp;gt; Bs{get;set;}public DbSet&amp;lt;C&amp;gt; Cs{get;set;}数据库中只生成 As表,但是具有Discriminator 列来区分不同的数据...
【全网首发】EntityFrameWork(EF)6.x 仓储扩展帮助类
EntityFrameWork 6.x Respoistory Extensions,EF 6.x 仓储帮助扩展类,于2016-04-08封装完成,集成了常规CRUD,以及批量增删改和执行SQL操作,非常适合大家使用!
再次整理C++相关书籍
《C++ Primer》大部头,平时积累 《Effective C++》平时修炼 《高质量 C++/C  编程指南》很多面试题就是出自于此,考前突击用
InfluxDB TSM存储引擎初探之东啃西啃
目录 进程简介 源码分析 Monitor init MetaClient init TSDBstore init TCP复用器 HTTPD 开启TSDBstore服务 Engine和Cache 结构关系简图 HTTP service Memory store 结尾 进程简介 influx --------------  命令行客户端 influx_inspect--...
EF架构封装类
http://www.woxihuan.com/46528208/1323334777088641.shtml
EasyUI,三层,EF,MVC各种通用框架
完美支持EasyUI,三层,EF,MVC等各种框架
安卓线程的使用
android中试用线程的几种方式,很简单。求<em>大神</em><em>指导</em>一下。
qq游戏找茬破解
有很多冗余代码 不是专业人士 见谅 另外可能会出现无响应bug 求<em>大神</em><em>指导</em>修改
MVC+EF泛型操作分页
首先取数据 public class EFT&amp;lt;T&amp;gt; where T : class, new() { <em>ef</em>.zpayDAL db = new <em>ef</em>.zpayDAL(); //dbcontext public List&amp;lt;T&amp;gt; GetPagedList&amp;lt;TKey&amp;gt;(int pageIndex, int pageSize, ...
易语言钓鱼源码
求<em>大神</em>买走 求<em>大神</em>买走 易语言钓鱼源码
asp.net+mvc+ef+ioc多语言通用后台框架
asp.net+mvc+<em>ef</em>+ioc多语言<em>通用</em>后台框架。
EF异常字段捕捉
 EF使用过程中,有时候提示字段异常了,但是不知道是哪个字段,这个时候就需要捕捉是哪个字段验证不通过,方法如下: using (NorthwindEntities ctx = new NorthwindEntities())               {                   try                   {                       //...
webpack.config.js报错不知道什么原因,求大神指导
-
spring 配置dubbo报错大神指导
Multiple annotations found at this line:rn - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:module'.rn - schema_r<em>ef</em>erence.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find the document; rn 2) the document could not be read; 3) the root element of the document is not .
急 hibernate总是报错大神指导
刚开始学hibernaternrn错误信息rnlog4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).rnlog4j:WARN Please initialize the log4j system properly.rnException in thread "main" java.lang.ExceptionInInitializerErrorrn at cn.hongle.hibernate.Many2Many.add(Many2Many.java:47)rn at cn.hongle.hibernate.Many2Many.main(Many2Many.java:14)rnCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource cn/hongle/domain/Student.hbm.xmlrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)rn at cn.hongle.hibernate.HibernateUtils.(HibernateUtils.java:17)rn ... 2 morernCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from invalid mappingrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:502)rn at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)rn ... 9 morernCaused by: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 48; Element type "Set" must be declared.rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.dom4j.io.SAXReader.read(SAXReader.java:465)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)rn ... 10 morernrnrnrn[color=#FF0000]hibernate.cfg.xml:rn[/color]rnrnrnrnrnrn rn com.microsoft.sqlserver.jdbc.SQLServerDriverrn jdbc:sqlserver://192.168.0.15:1433;DatabaseName=hibernatern sarn 123rn rn org.hibernate.dialect.SQLServerDialectrn rn updatern truern rn rn rnrnrnrn[b]Teacher.hbm.xml:rn[/b]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rnrnrnrnStudent.hbm.xml:rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnMany2Many.javarnrnpackage cn.hongle.hibernate;rnrnimport java.util.HashSet;rnimport java.util.Set;rnrnimport org.hibernate.Session;rnimport org.hibernate.Transaction;rnrnimport cn.hongle.domain.Student;rnimport cn.hongle.domain.Teacher;rnrnpublic class Many2Many rn public static void main(String[] args) rn add();rn rn rn rn static void add()rn Session s=null;rn Transaction tx=null;rn tryrn Set ts = new HashSet();rnrn Teacher t1 = new Teacher();rn t1.setName("t1 name");rn ts.add(t1);rnrn Teacher t2 = new Teacher();rn t2.setName("t2 name");rn ts.add(t2);rnrn Set ss = new HashSet();rn Student s1 = new Student();rn s1.setName("s1");rn ss.add(s1);rnrn Student s2 = new Student();rn s2.setName("s2");rn ss.add(s2);rnrn t1.setStudents(ss);rn t2.setStudents(ss);rn rn s1.setTeachers(ts);rn s2.setTeachers(ts);rnrn s = HibernateUtils.getSession();rn tx = s.beginTransaction();rn s.save(t1);rn s.save(t2);rn s.save(s1);rn s.save(s2);rn tx.commit();rn rn finallyrn if(s!=null)rn s.close();rn rn rnrnrnrn
poi 导出 word 报错大神指导
poi导出到word <em>报错</em>信息nException in thread "main" java.lang.NoSuchMethodError: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR.getDrawingList()Ljava/util/List;n at org.apache.poi.xwpf.usermodel.XWPFRun.(XWPFRun.java:99)n at org.apache.poi.xwpf.usermodel.XWPFParagraph.createRun(XWPFParagraph.java:272)n at Test2.main(Test2.java:54)n n <em>报错</em>代码行代码 XWPFRun r1 = p1.createRun();n 引用的jar包!n [图片说明](https://img-ask.csdn.net/upload/201610/26/1477462405_111126.png)
编译openJDK报错,求大神指导!!!
最近想学习下《深入理解Java虚拟机 JVM高级特性与最佳实践》 看看jdk源码和JVM,但是在ubuntu系统编译openJDK<em>报错</em>,不知道哪位<em>大神</em>遇到过,或者有解决办法。<em>报错</em>如下,感觉就是第一句error: warnings found and -Werror specified 引起,但是不知道在哪里改这个配置rnrn...................(省略前部分)rnerror: warnings found and -Werror specifiedrn../../../../src/share/classes/java/rmi/MarshalledObject.java:159: warning: [unchecked] unchecked castrn T obj = (T) in.readObject();rn ^rn required: Trn found: Objectrn where T is a type-variable:rn T extends Object declared in class MarshalledObjectrn../../../../src/share/classes/java/rmi/MarshalledObject.java:193: warning: [rawtypes] found raw type: MarshalledObjectrn MarshalledObject other = (MarshalledObject) obj;rn ^rn missing type arguments for generic class MarshalledObjectrn where T is a type-variable:rn T extends Object declared in class MarshalledObjectrn../../../../src/share/classes/java/rmi/server/RemoteObject.java:439: warning: [rawtypes] found raw type: Classrn Class r<em>ef</em>Class = Class.forName(internalR<em>ef</em>ClassName);rn rn............rn(中间省略若干行类似代码)rn .............rn missing type arguments for generic class Classrn where T is a type-variable:rn T extends Object declared in class Classrn../../../../src/share/classes/java/util/logging/LogManager.java:1322: warning: [rawtypes] found raw type: Classrn Class clz = ClassLoader.getSystemClassLoader().loadClass(val);rn ^rn missing type arguments for generic class Classrn where T is a type-variable:rn T extends Object declared in class Classrn../../../../src/share/classes/java/beans/PropertyChangeSupport.java:463: warning: [unchecked] unchecked castrn Hashtable children = (Hashtable) fields.get("children", null);rn ^rn required: Hashtablern found: Objectrn../../../../src/share/classes/sun/rmi/server/ActivatableR<em>ef</em>.java:333: warning: [deprecation] done(RemoteCall) in RemoteR<em>ef</em> has been deprecatedrn public void done(RemoteCall call) throws RemoteException rn ^rn../../../../src/share/classes/sun/rmi/server/ActivatableR<em>ef</em>.java:324: warning: [deprecation] invoke(RemoteCall) in RemoteR<em>ef</em> has been deprecatedrn public void invoke(RemoteCall call) throws Exceptionrn ^rnNote: Some input files additionally use or override a deprecated API.rn1 errorrn100 warningsrnmake[6]: *** [.compile.classlist] Error 1rnmake[6]: Leaving directory `/opt/openjdk/jdk/make/sun/rmi/rmi'rnmake[5]: *** [all] Error 1rnmake[5]: Leaving directory `/opt/openjdk/jdk/make/sun/rmi'rnmake[4]: *** [all] Error 1rnmake[4]: Leaving directory `/opt/openjdk/jdk/make/sun'rnmake[3]: *** [all] Error 1rnmake[3]: Leaving directory `/opt/openjdk/jdk/make'rnmake[2]: *** [jdk-build] Error 2rnmake[2]: Leaving directory `/opt/openjdk'rnmake[1]: *** [generic_debug_build] Error 2rnmake[1]: Leaving directory `/opt/openjdk'rnmake: *** [build_debug_image] Error 2rn
ios真机测试报错,求大神指导(SwiftyJSON.framework)
<em>报错</em>返回码:nndyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSONn R<em>ef</em>erenced from: /private/var/mobile/Containers/Bundle/Application/72F46E5B-AED7-49D7-B7CE-8C74C447B16B/BabyStrategy.app/BabyStrategyn Reason: image not foundn(lldb) nnn怎么解决?
EF 通用数据层类
EF <em>通用</em>数据层父类方法小结 转载:http://www.cnblogs.com/yq-Hua/p/4165344.html MSSql 数据库 数据层 父类 增删改查:   using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using ...
EF Code First 使用继承类的一个问题
1. 如果在CodeFirst 中使用继承关系,并且两个继承类都有对应的数据表的话, 添加父类表数据的时候,子类表数据也会同时添加 子类 /// /// 混合明文表 /// [Table("PlainText")] public class PlainText { [Key] [StringLength(50)] public string Content {
EF 汇总函数使用注意事项Max()/Min()等
一、字符串类型最大值 1.字符串类型的最大值,和数据库的字典排序最后一个相同,如果存在返回null //字符串最大值,是字典排序最后一个 string max1 = _context.students.Max(q => q.sname); Console.WriteLine(max1); //字符串最大值,如果不存在返回null string max2 = _context.students
大神指导指导一下
[img=http://img.bbs.csdn.net/upload/201505/27/1432717312_644686.jpg][/img][b][img=http://img.bbs.csdn.net/upload/201505/27/1432717340_762836.jpg][/img][img=http://img.bbs.csdn.net/upload/201505/27/1432717366_514225.jpg][/img][/b]
EF修改实体状态(State)时出现异常找不到方法“System.Data.Entity.Infrastructure.set_State”
EF修改实体状态(State)时出现异常找不到方法“System.Data.Entity.Infrastructure.set_State”,具体异常名字记不清楚了(因为已经解决了 O(∩_∩)O哈哈~)。大致上是在读取或设置实体状态时找不到State的get和set方法。 异常出现代码如下:var entry = this._context.Entry(entity); this._contex
EF Code First(代码优先)错误及解决
在使用visio studio 2013 进行 EF Code First 开发时,如果处理不当,有时系统会出现一些异常错误,导致无法生成(或更新)数据库。在程序集“XXX”中未找到迁移配置类型“XXX.Migrations.Configuration”。在“程序包管理控制器”中采用 enable-migrations 时,在“程序包管理控制器”中有时会出现红字错误提示“在程序集“XXX”中未找到...
EF查看错误信息
首首先将鼠标放到ex 上去 然后展开错误信息 选择第一个蓝色方块,展开信息 然后选择EntityValidationErrors ,在展开信息,选择原始视图,展开信息,选择非公共成员,选择_items ,展开信息,选择第一个(如果就是一个就选择第一个,多个的情况没碰到过),展开信息,选择 ValidationErrors,展开信息,选择第一个然后他就会提示具体错误信息了 CSDN  服务器维护
大神指导 mfc类的调用
已经设计好一个类了,我想新建一个单文档 然后点菜单弹出对话框,接着是在对话框中添加控件,想引入那个已经设计好的类,让它去控制控件。。怎么弄?
大神解答 EF的问题
今天遇到一个需要在LINQ中使用SQL方法的问题..rn以前一直用的SqlFunctions对象,今天却<em>报错</em>了..rn后来有<em>大神</em>说可以用EntityFunctions 还是<em>报错</em>..rn最后用DbFunctions 就好了..rn求<em>大神</em>解答这三个对象到底是什么情况? - - 有什么区别?
EF比较坑嗲的问题,求大神指导
数据库表中的字段类型是int类型,edmx生成的是string类型,我查询数据时,toList()的时候就<em>报错</em>了:rn[color=#FF0000]“SYS_WorkFlowRecord”的“WFR_Id”属性不能设置为“Int32”值。必须将该属性设置为类型为“String”的非 null 值。[/color] rnusing (var entities = new SYSEntities())rn rn var queryRecordList = entities.SYS_WorkFlowRecord.Select(x => x.WFR_Instance == investNo).ToList();rnrn这是源码 rnrn哪位<em>大神</em>帮忙解决下
EF开发时使用db.SaveChanges()报错
错误为:An error occurred while updating the entries. See the inner exception for details. 原因:主键的类型设置为nvarchar,并且没有指定大小
S2SH不完整版
没事整个框架,用的是myeclipse10.0,tomcat 7.0,框架包全部是myeclipse自带。xwork-core-2.2包调试出问题,求<em>大神</em><em>指导</em>
QML - 动态柱状图
只是实现了动态显示柱状图的内容. 一直在努力实现动态显示音频频谱的功能,如果有哪位<em>大神</em>实现了,麻烦留言告知。求<em>指导</em>。
EF批量操作数据,增删改查
该项目用了VS2017 使用了三种方法进行对数据库的批量操作, SqlBulkCopy , EntityFramework.Extended.6.1.0.168 ,Dapper.1.50.5,EFUtilities.1.0.2 , Z.EntityFramework.Extensions.3.16.17
大神指导~~
用C#编写一个用户注册窗口,将用户的注册信息存储且写入指定txt文件中,并且用空格隔开,我用VC#2010,windows form编程,即将6个textBox中的信息写入指定txt中,按确定保存~~
急~~大神指导
我现在在做一个注册登录,用vc#窗体编程,要求用户注册后信息写入txt,修改密码时需要匹配txt中的部分信息,如果匹配成功,可以修改密码;为什么匹配非汉字行的时候可以,匹配汉字行的时候不可以;而且有时候能匹配成功,有时候匹配不成功~~
大神指导,感激不尽。
我按书上给的源程序编译时却出现了错误。怎么了?下面是源代码:rn#include rnrnLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;rnrnrnint WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,rn PSTR szCmdLine, int iCmdShow)rnrn static TCHAR szAppName[] = TEXT ("HelloWin") ;rn HWND hwnd ;rn MSG msg ;rn WNDCLASS wndclass ;rnrn wndclass.style = CS_HREDRAW | CS_VREDRAW ;rn wndclass.lpfnWndProc = WndProc ;rn wndclass.cbClsExtra = 0 ;rn wndclass.cbWndExtra = 0 ;rn wndclass.hInstance = hInstance ;rn wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;rn wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;rn wndclass.hbrBackground= (HBRUSH) GetStockObject (WHITE_BRUSH) ;rn wndclass.lpszMenuName = NULL ;rn wndclass.lpszClassName= szAppName ;rnrn if (!RegisterClass (&wndclass))rn rn MessageBox ( NULL, TEXT ("This program requires Windows NT!"),rn szAppName, MB_ICONERROR) ;rn return 0 ;rn rnrn hwnd = CreateWindow( szAppName, // window class namern TEXT ("Full Screen Display"), // window captionrn// WS_OVERLAPPEDWINDOW, // window stylern WS_POPUP,rn// CW_USEDEFAULT,// initial x positionrn// CW_USEDEFAULT,// initial y positionrn// CW_USEDEFAULT,// initial x sizern// CW_USEDEFAULT,// initial y sizern 0,rn 0,rn ::GetSystemMetrics(SM_CXSCREEN),rn ::GetSystemMetrics(SM_CYSCREEN),rn NULL, // parent window handlern NULL, // window menu handlern hInstance, // program instance handlern NULL) ; // creation parametersrnrnrn ShowWindow (hwnd, iCmdShow) ;rn UpdateWindow (hwnd) ;rnrnrn while (GetMessage (&msg, NULL, 0, 0))rn rn TranslateMessage (&msg) ;rn DispatchMessage (&msg) ;rn rn return msg.wParam ;rnrnrnLRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn HDC hdc ;rn PAINTSTRUCT ps ;rn RECT rect ;rnrn switch (message)rn rn case WM_CREATE:rn// PlaySound (TEXT ("hellowin.wav"), NULL, SND_FILENAME | SND_ASYNC) ;rn return 0 ;rn case WM_PAINT:rn hdc = BeginPaint (hwnd, &ps) ;rn GetClientRect (hwnd, &rect) ;rn DrawText (hdc, TEXT ("This window can cover the task item!"), -1, &rect,rn DT_SINGLELINE | DT_CENTER | DT_VCENTER) ;rn EndPaint (hwnd, &ps) ;rn return 0 ;rn case WM_DESTROY:rn PostQuitMessage (0) ;rn return 0 ;rn rn return D<em>ef</em>WindowProc (hwnd, message, wParam, lParam) ;rnrn错误:rnCompiling...rn01.crne:\programs\a\01.c(33) : warning C4003: not enough actual parameters for macro 'CreateWindowA'rne:\programs\a\01.c(33) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'void *'rne:\programs\a\01.c(33) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 8rne:\programs\a\01.c(33) : warning C4133: 'function' : incompatible types - from 'struct HINSTANCE__ *' to 'struct HMENU__ *'rne:\programs\a\01.c(33) : error C2059: syntax error : ')'rne:\programs\a\01.c(43) : error C2143: syntax error : missing '' b<em>ef</em>ore '__stdcall'rne:\programs\a\01.c(44) : warning C4142: benign red<em>ef</em>inition of typerne:\programs\a\01.c(51) : warning C4129: 'm' : unrecognized character escape sequencerne:\programs\a\01.c(51) : warning C4129: '? : unrecognized character escape sequencern执行 cl.exe 时出错.rnrn01.obj - 1 error(s), 0 warning(s)rn求<em>大神</em><em>指导</em>
大神指导。。。。。。。。。。。。。。
刚补了下C基础,不知道该先看数据结构还是经典的C如:《C和指针》,《C陷阱与缺陷》,《C专家编程》??另,这三本书怎么看啊,有没有先后的讲究????数据结构也求推荐书籍啊!!奋斗半年,只为不愧于心!!!
小弟求大神指导~
程序的逻辑中,经常会遇到,类似数据库操作。这些在c++中是怎么操作的呢?rnrn比如,一个对象拥有属性:姓,名,所在城市,身高,年龄,性别。rnrn要求列举中所有满足条件的对象:rn第一种情况rn 1.所在城市Arn 2.所有姓氏为李rn第二种情况,比较繁琐一点的:rn 1.身高为173~178之间的rn 2.性别为男rnrnrn项目中有不少诸如此类的问题。我基本是用了几个std::map或者std:multimap来做的,但是毕竟容易出错,而且操作起来复杂度也很高。rnrn高手达人,应该有什么多键管理器类的。rnrnrn[color=#FF0000]以上都是我打的比方,从项目中提炼出来的。我希望有良好的方法处理第一种情况。如果有代码就更好了。第二种貌似太麻烦了点,就不奢望了。小弟先在这里谢谢各位看帖的朋友了。O(∩_∩)O[/color]
大神指导
B/S架构本身就是多线程,struts2被加载到容器,每当有人访问action,容器都建一个实例,现在我需要让这些请求排队,rn[code=java]rnprivate static Queue<> linkedlist = new LinkedList<>();rnlinkedlist.offer(this);rn[/code]rn这样对吗?rn谢谢rn
大神指导?编译预处理
为什么要进行编译预处理?n编译预处理是怎么进行的?特别想知道这是怎么样一回事!
新手求大神指导
[code=python]class SubMain():rn i=0rn while (i < 20):rn i = i + 1rn d<em>ef</em> __init__(self, submain):rn print self.irn self.submain = submainrn #self.url_360 = 'http://webscan.360.cn/sub/index/?url=%s' % self.submainrn self.url_aizhan= 'https://dns.aizhan.com/%s/%d/' % (self.submain,i)[/code]rn这种情况下,请问在d<em>ef</em>中怎么能调用到i变量
myeclipse6.5求大神指导
安装了myeclipse6.5版本的,比如在写System.的时候不能带出System这个类中的方法,求解决办法。已重新安装。
大神 指导
rn rnrn[img=http://img.bbs.csdn.net/upload/201603/30/1459302126_60264.png][/img]rn[img=http://img.bbs.csdn.net/upload/201603/30/1459302174_955188.png][/img]rn 求<em>大神</em>知道哪里错了
大神指导
这排序出来少一个数,初学者请<em>指导</em>。rnrnrnvar arr=[5,0,-56,900,12];rnrn for (var i=0;iarr[j+1])rn rn var temp=arr[j];rn arr[j]=arr[j+1];rn arr[j+1]=temp;rn rn rnrn rn for (var i=1;i
求occi大神指导
我使用的是vs2012 orcale11g客户端 编译时出现链接错误:rn1>------ 已启动生成: 项目: ConnectDatabase, 配置: Release Win32 ------rnrn1> ConnectDatabase.cpprnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z)rnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@SAXPAV123@@Z)rnrn1>C:\Users\my\documents\visual studio 2012\Projects\ConnectDatabase\Release\ConnectDatabase.exe : fatal error LNK1120: 2 个无法解析的外部命令rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rnrn代码如下:rn[code=c]rnrn// ConnectDatabase.cpp : 定义控制台应用程序的入口点。rn//rn#include "stdafx.h"rnrn#d<em>ef</em>ine WIN32COMMON //避免函数重定义错误rnrn#include rnrnusing namespace std;rnrnusing namespace oracle::occi;rnrnint main()rnrnrnrn Environment *env=Environment::createEnvironment();rnrn cout<<<
大神指导,安卓!!!!
我标记的1,2,3处不理解,求<em>大神</em>可以解释下,谢谢^ω^![图片](https://img-ask.csdn.net/upload/201611/15/1479217669_412896.jpg)
求PS大神指导
怎么样使用图片上的人祛斑
大神指导!谢谢!!
一张Excel表:序号 姓名 时间 备注 第1周描述rn 1 小明 9.15 .. ....rn 2 小红 9.15 aa dddddrn ...rn要把这个界面做到Delphi中去,可以简单修改查询,现在要在数据库里建2张表,第1张表包含前面的几列内容:序号、姓名、时间、备注,还有1张表就是每周描述,因为每周都要更新,请问第2张表怎么建,界面里的“第1周描述”可以变成第2(3、4、5...)周描述,还是也建到第一张表里去,2张的话Delphi的query中SQL语句怎么写???
菜鸟求大神指导
int res(int a,int b,int prio)rnrn int x=14,y=14,z=14;rn if(a!=b)rn rn if(a*2*2+b>prio)rn x=a;rn printf("%d ",x);rn if(b*2*2+a>prio)rn y=b;rn printf("%d ",y);rn if(prio-a-b>0)rn z=prio-a-b+1;rn printf("%d \n",z);rn return min(z,min(x,y)); rn rnrn这是我写的一个简单地函数,传递的值为a=1,b=2,prio=15;可是运行出来的结果并不是13啊,当把这个函数直接写进主函数的时候结果又正确,求解释,这是怎么回事
oracle大神指导
怎么同时执行查询语句和修改语句
求c#大神指导
我想<em>指导</em>为什么创建不了用户 (NGUSER)?????rnrnrnrnrn private void btnSetNg_Click(object sender, EventArgs e)rn rn string strSql = "create user NGUSER identified by '9003' d<em>ef</em>ault tablespace std; grant connect,resource to NGUSER ; grant create any sequence to NGUSER ; grant create any table to NGUSER ; grant delete any table to NGUSER ; grant insert any table to NGUSER ; grant select any table to NGUSER ; grant unlimited tablespace to NGUSER ; grant execute any procedure to NGUSER ; grant update any table to NGUSER ; grant create any view to NGUSER ; "; rn rn //"CREATE USER NGUSER PROFILE DEFAULT IDENTIFIED BY 9003 DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;GRANT CREATE ANY TABLE TO NGUSER;GRANT UNLIMITED TABLESPACE TO NGUSER;GRANT CONNECT TO NGUSER;GRANT RESOURCE TO NGUSER;";rn rn tryrn rn Form1.oclConnection.Open();rn rn OracleCommand oclCommand = new OracleCommand(strSql, Form1.oclConnection);rn rnrn MessageBox.Show("创建成功");rnrn /*rn rn rn create user NGUSER identified by 9003; grant create session to NGUSER; grant create table to NGUSER; grant create tablespace to NGUSER; grant create view to NGUSER; rn rn */rnrnrn rn catch (Exception ex)rn rnrn MessageBox.Show("SQL语句出错!\n" + strSql.ToString() + "\n请检查:\n" + ex.ToString());rnrn rn finallyrn rn Form1.oclConnection.Close();rn rn FormEnterDatabase_Load(this,e);rn rn
求jstree大神指导
用jstree插件,遇到一个问题 ,使用jstree checkbox的时候,选中父节点下的所有子节点,父节点才是selected状态,才能拿到父节点的id。 我想知道  怎么只选中父节点下的一个或多个子节点 ,也能拿到父节点的id。如下图 父节点是半选状态  也能拿到父节点和子节点的id。 求<em>大神</em><em>指导</em>~
求助!!求大神指导!!
安装服务器版的Ubuntu18.04 出现的错误!求<em>大神</em><em>指导</em>。感激不尽!!!
菜鸟求大神指导
想做一个串口驱动,有点糊涂了,记得mincicom和板子连接时要串口线,如果在配置内核时把已有的串口驱动的模块去掉,那么怎样加载自己写的驱动呢?
求各位大神指导……
rn rn rn rnrn我把Winform的webbrowser控件添加到WPF中,但是无法用XAML对它定位,上面代码提示出错,我是手动添加上去的,请问应该怎样做才能对它实现精确定位,也就是说我想把它拉到哪就哪……rn
C#求大神指导。。。
有一张表。。rn rntable arn(rnno char(9),rnna char(8),rnse char(4)rnrn)rnrn在连接数据库SQL server08后,我想将数据都显示在窗体中。。怎么实现呢。。求指点。。。
初学者求大神指导
小弟初学Java遇到一个难题,求<em>大神</em><em>指导</em>。rnrn题目:从键盘输入三个数,并赋值,比较之后按从小到大的顺序输出。
大神指导SQL
Public Function LoadEQPDailyReport(Optional ByVal AreaNo As String = d<em>ef</em>String, Optional ByVal EquipmentNo As String = d<em>ef</em>String, _rn Optional ByVal StartTime As Date = d<em>ef</em>DateTime, Optional ByVal EndTime As Date = d<em>ef</em>DateTime, Optional ByVal AdditionalXml As String = "") As Stringrn Dim cnnTemp As OleDb.OleDbConnectionrn Dim daTemp As OleDb.OleDbDataAdapterrn Dim dsTemp As DataSetrn Dim drTemp As OleDb.OleDbDataReaderrn Dim strSQL As Stringrn Dim StartEndTime As Doublern Dim Rows() As DataRowrn Tryrn '//Create connectionrn cnnTemp = objLic.CreateConnection(strConnectionString)rn strSQL = "Select * From tblEQPStateBasis Order By EquipmentState"rn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn strSQL = " Select (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) AreaNo," & _rn " (Select EquipmentType From tblEQPEquipmentBasis Where EquipmentNo = Z.EquipmentNo) EquipmentType," & _rn " Z.EquipmentNo," & _rn " 0 Moves"rn StartEndTime = DateDiff(DateInterval.Second, StartTime, EndTime)rn Do While drTemp.Readrn If strDataBaseType = "oracle" Thenrn rn strSQL = strSQL & " ,Nvl(Round(( Select Sum(Least(A.EndTime,To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')) -" & _rn " Greatest(A.StartTime,To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')))*24*60*60" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, SysDate EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime to_date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState)/" & StartEndTime & "*100,2),0) """ & drTemp("StateName") & """"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = strSQL & " ,ISNull(Round((CAST((Select Sum(DateDiff(Second," & _rn " (Case" & _rn " When A.StartTime > '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.StartTime" & _rn " Else '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)," & _rn " (Case" & _rn " When A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.EndTime" & _rn " Else '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)))" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, GetDate() EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState) as float) /CAST(" & StartEndTime & " AS float))*100,2),0) " & drTemp("StateName")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn strSQL = strSQL & " From tblEQPEquipmentBasis Z" & _rn " Where Z.EquipmentNo Is Not Null"rn rn If AreaNo <> d<em>ef</em>String Thenrn strSQL = strSQL & " And (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) = '" & AreaNo & "'"rn End Ifrn rn If EquipmentNo <> d<em>ef</em>String Thenrn strSQL = strSQL & " And EquipmentNo In ('" & Replace(EquipmentNo, ",", "','") & "')"rn End Ifrn rn If AdditionalXml <> "" Thenrn '//additionalconditionrn strSQL = strSQL & SeparateAddXML_Condition(AdditionalXml)rn End Ifrn strSQL = strSQL & " Order By EquipmentNo"rn '//Select Datarn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn daTemp = New OleDb.OleDbDataAdapter(cmmTemp)rn dsTemp = New DataSetrn daTemp.Fill(dsTemp, "EQPDailyReport")rn If strDataBaseType = "oracle" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn " And A.EndTime < To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn "Group By EquipmentNo"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn "Group By EquipmentNo"rn End Ifrn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn Do While drTemp.Readrn Rows = dsTemp.Tables("EQPDailyReport").Select("EquipmentNo = '" & drTemp("EquipmentNo") & "'")rn If Rows.Length <> 0 Thenrn Rows(0).Item("Moves") = drTemp("Moves")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn '//Combine Return Valuern LoadEQPDailyReport = CombineXMLReturnValue("loadeqpdailyreport", "EQPDailyReport", _rn "DataSet", FormatXMLSchema(dsTemp.GetXmlSchema), dsTemp.GetXml, "")rn Catch e1 As Exceptionrn LoadEQPDailyReport = "fail"rn rn Throw 'New Exception("clsReport.LoadEQPDailyReport: " & e1.Message)rn Finallyrn Call objLic.CloseConnection(cnnTemp)rn If Not daTemp Is Nothing Thenrn daTemp.Dispose()rn End Ifrn If Not dsTemp Is Nothing Thenrn dsTemp.Dispose()rn End Ifrn End Tryrn End Functionrnrnrn谁能帮我从里面抠出最终的SQL来,用的是ORACLE数据库
新手求大神指导
学好地理信息系统专业,哪些程序设计语言、数据库是必须要熟练的?谢谢
大神们求指导
为什么graphical layout 中没有文字编辑的控件[img=http://img.bbs.csdn.net/upload/201310/13/1381654097_97449.png][/img]
大神指导
我们需要弹出一个窗口,输入一行字符串,统计其中的单词个数rnrnrn#includern /*输入一行字符串,统计其中有多少单词,单词之间用空格分隔开*/rnvoid main() rnrn char string[81];rn int i,num=0,word=0;rn char c;rn rn gets(string);rn for(i=0;(c=string[i])!='\0';i++)rn if(c=='')rn word=0;rn rn else if(word==0)rn rn word=1;rn num++;rn rn rnprintf("There are %d words in the line.\n",num);rn
大神指导
需要用WPF做一个类似于PL/SQL的SQL语句编辑器,求资料,求<em>指导</em>!
大神指导,十万火急!!!
如何只用action调用别的网站的查找功能查找地址所在位置?n如:输入自定义接口http://127.0.0.1:8080/WebManagePlatform/inter/hc_ip.do?ip=121.199.26.86n就可以查找ip地址所在位置。n求<em>大神</em><em>指导</em>........n
大神指导!!!
五月 05, 2017 3:41:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:manage' did not find a matching property.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Mar 28 2017 16:01:48 UTCrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 7.0.77.0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files\Java\jre7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_04-b22rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51933rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\develop\apache-tomcat-7.0.77\endorsedrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=GBKrn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn五月 05, 2017 3:41:58 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1758 msrn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:59 下午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1119)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)rn ... 7 morernCaused by: java.lang.IllegalArgumentException: The servlets named [manage1.Single2Search] and [manage1.Single2Search2] are both mapped to the url-pattern [/Single2Search] which is not permittedrn at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)rn at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2458)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2133)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn ... 7 morernrnrn
大神指导
/*建立*/rn#includern#includern#includern#d<em>ef</em>ine N 6rn struct linkmanrn char name[10];rn char tel[12];rnrn contacts[N];rn int main()rn char name2[10];rn int i,flag=1,symbol;rn FILE *fp;rn printf("请选择您需要的功能\n");rn printf("*****************************\n");rn printf("1.新建\n2.查找\n");rn printf("*****************************");rn scanf("%d",&symbol);rn printf("您选择的是%d \n",symbol);rn switch(symbol)rn rn case 1:rn printf("请输入您要新建的信息:\n姓名:\n电话号码:\n");rn for (i = 0; i < N; i++)rn scanf("%s %s", contacts[i].name, contacts[i].tel);rn if ((fp = fopen("F:\\phone.txt", "a")) == NULL)rn rn printf("can't open the file.");rn exit(0);rn rnrn for (i = 0; i < N; i++)rn rn fputs(contacts[i].name, fp);rn fputs("\n", fp);rn fputs(contacts[i].tel, fp);rn fputs("\n", fp);rn printf("%s%s", contacts[i].name, contacts[i].tel);rn rn fclose(fp);rn getchar();rn break;rn rn /*查找*/rn case 2:rn rn if ((fp = fopen("F:\\phone.txt", "r")) == NULL)rn rn printf("can not open the file");rn exit(0);rn rn printf("请输入您要查找的联系人:\n");rn scanf("%s",name2); //安全rn for (i = 0; i < 6; i++)rn fseek(fp, i*sizeof(contacts[i]), 0);rn fgets(contacts[i].name, 10, fp);rn fgets(contacts[i].tel, 12, fp);rn rn for (i = 0; i < 6; i++)rn rn if (strcmp(name2, contacts[i].name) == 0)rn printf("%s %s", contacts[i].name, contacts[i].tel);rn rn fclose(fp);rnrn break;rn rn getchar();rn getchar();rn return 0;rnrnrnrnrnrnrncase2的功能为什么实现不了?
新手求大神指导~~~
public class SimpleTypesrn public static void main(String[] args)rn System.out.printf("byte \t数值范围: %d ~ %d\n",Byte.MAX_VALUE, Byte.MIN_VALUE);rn System.out.printf("short \t数值范围:%hd ~ %hd\n",Short.MAX_VALUE, Short.MIN_VALUE);rn System.out.printf("int \t数值范围: %d ~ %d\n",Integer.MAX_VALUE, Integer.MIN_VALUE);rn System.out.printf("long \t数值范围:%ld ~ %ld\n",Long.MAX_VALUE, Long.MIN_VALUE);rn System.out.printf("char \t数值范围: %c ~ %c\n",Character.MAX_VALUE, Character.MIN_VALUE);rn System.out.printf("float \t数值范围: %f ~ %f\n",Float.MAX_VALUE, Float.MIN_VALUE);rn System.out.printf("double \t数值范围:%lf ~ %lf\n",Double.MAX_VALUE, Double.MIN_VALUE);rn rn rnrn为啥char,float,double都不能用呢?我看过这三个都有MAX_VALUE和MIN_VALUE啊。。。求<em>指导</em>。。。rn运行结果如下:rnbyte 数值范围: 127 ~ -128rnshort 数值范围:7fffd ~ ffff8000drnint 数值范围: 2147483647 ~ -2147483648rnException in thread "main" java.util.UnknownFormatConversionException: Conversion = 'l'rn at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2606)rn at java.util.Formatter$FormatSpecifier.(Formatter.java:2634)rn at java.util.Formatter.parse(Formatter.java:2480)rn at java.util.Formatter.format(Formatter.java:2414)rn at java.io.PrintStream.format(PrintStream.java:920)rn at java.io.PrintStream.printf(PrintStream.java:821)rn at SimpleTypes.main(SimpleTypes.java:7)
文章热词 机器学习 机器学习课程 机器学习教程 深度学习视频教程 深度学习学习
相关热词 c#通用数据库操作类 c# json通用类 c#数据库通用类 c# ef通用数据层封装 python在线培训指导 python实验指导教程
我们是很有底线的