求大神解答为什么vs调试出现的窗口

为什么vs调试出现的窗口不是我建立的窗口,弹出的是一个类似编辑框的东西?直接点击exe文件也是弹出的这样的编辑框,本人小白,求大神解答

图片说明图片说明

1个回答

你用向导创建了sdi/mdi的程序,而不是dialog based的程序。你的对话框要点帮助-关于才显示

zhutianhhh
zhutianhhh 回复caozhy: 好了!非常感谢!!
接近 3 年之前 回复
caozhy
贵阳老马马善福专门编写代码的老马就是我! 回复zhutianhhh: 重新建立一个mfc应用程序,选择dialog based(中文版的叫做“基于对话框”)类型程序
接近 3 年之前 回复
zhutianhhh
zhutianhhh 回复caozhy: 怎么样直接跳出界面?
接近 3 年之前 回复
zhutianhhh
zhutianhhh 回复caozhy: 是的是的!的确需要点击帮助才能实现,那怎么样才能不用点击帮助就是直接出现建立的窗口?
接近 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
VS 窗口调试参数
VS 窗口调试默认的时候是显示ANSI字符的,所以如果我们在显示其他编码的时候往往会发现一团乱码。所以在调试查看的时候需要配合上默认的参数来转换输出。如下图UTF-8的字符串显示: 下面我们将对调试参数进行一个简答的汇总 参数 说明 s 显示ANSI字符集数据 su 显示UNICODE字符集数据 s8 显示UTF-8字符集数据 d...
VS调试窗口闪退
有三种方法: 1.启动调试不要用这个按钮:直接Ctrl+F5启动。效果如下:       2.添加system("pause"); #include main() {     printf("Hello,World!\n");     system("pause"); } 效果如下:        3.添加  _getch(); #includ
写的一个windows的窗口出现如下错误,求大神解答
#include // include the basic windows header filernrn// the entry point for any Windows programrnint WINAPI WinMain(HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPSTR lpCmdLine,rn int nShowCmd)rnrn // create a "Hello World" message box using MessageBox()rn MessageBox(NULL,rn L"Hello World!",rn L"Just another Hello World program!",rn MB_ICONEXCLAMATION | MB_OK);rnrn // return 0 to Windowsrn return 0;rnrn错误:rn1>MSVCRTD.lib(crtexe.obj) : error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用rn1>D:\3dgame\3dgame\Debug\3dgame.exe : fatal error LNK1120: 1 个无法解析的外部命令
为什么不能运行,甚至出现安全警告***求大神解答,
[img=https://img-bbs.csdn.net/upload/201611/21/1479734934_302683.png][/img]rnrn[img=https://img-bbs.csdn.net/upload/201611/21/1479734946_367179.png][/img]rnrnrn88888888888888888888888888888888888888888888888888888888888888888888888rnrn[img=https://img-bbs.csdn.net/upload/201611/21/1479734966_426310.png][/img]
ajax出现小问题,求大神解答
这是ajax中js的原生态编码,![图片说明](https://img-ask.csdn.net/upload/201608/04/1470312911_706221.png)注释标注的那一部分有问题,send方法没办法把数据发送到servlet中去rn这是servlet的编码![图片说明](https://img-ask.csdn.net/upload/201608/04/1470313174_335754.png)rn顺便说一下,alert(this.value)是可以输出值的,这个可以肯定没问题,而且要获取参数的话,只能在jstl标签中获取
struts2和spring整合出现错误,求大神解答
一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext listenerStartrnSEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnjava.lang.NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.(Ljava/lang/Class;)Vrn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:350)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:798)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:493)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext startrnSEVERE: Error listenerStartrn一月 09, 2015 9:59:52 下午 org.apache.catalina.core.StandardContext startrnSEVERE: Context [/MyOA] startup failed due to previous errorsrnrn以上是错误提示。rn我的监听器配置如下:rn[img=https://img-bbs.csdn.net/upload/201501/09/1420812144_769869.png][/img]rn我的路径如下:rn[img=https://img-bbs.csdn.net/upload/201501/09/1420812215_538155.png][/img]rnrn百度了好久都没解答出来,包也导入了。
初学jdbc出现的问题,求大神解答!
[code=java]class ConnMySqlrnrn public static void main(String[] args) throws Exceptionrn rn rn Class.forName("com.mysql.jdbc.Driver");rn try(rn rn Connection conn = DriverManager.getConnection(rn "jdbc:mysql://localhost:3306/select_test"rn , "root" , "1994");rn rn Statement stmt = conn.createStatement();rn rn ResultSet rs = stmt.executeQuery("select s.* , teacher_name"rn + " from student_table s , teacher_table t"rn + " where t.teacher_id = s.java_teacher"))rn rn rn while(rs.next())rn rn System.out.println(rs.getInt(1) + "\t"rn + rs.getString(2) + "\t"rn + rs.getString(3) + "\t"rn + rs.getString(4));rn rn rn rnrn[/code]rnrn[img=https://img-bbs.csdn.net/upload/201404/27/1398587753_755493.jpg][/img]rnrn求助!
使用hibernate注解出现错误,求大神解答
[color=#FF0000]四月 22, 2017 2:23:31 下午 org.hibernate.Version logVersionrnINFO: HHH000412: Hibernate Core 5.1.0.Finalrn四月 22, 2017 2:23:31 下午 org.hibernate.cfg.Environment rnINFO: HHH000206: hibernate.properties not foundrn四月 22, 2017 2:23:31 下午 org.hibernate.cfg.Environment buildBytecodeProviderrnINFO: HHH000021: Bytecode provider name : javassistrn四月 22, 2017 2:23:31 下午 org.hibernate.annotations.common.reflection.java.JavaReflectionManager rnINFO: HCANN000001: Hibernate Commons Annotations 5.0.1.Finalrn四月 22, 2017 2:23:31 下午 org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configurernWARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!)rnException in thread "main" org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:244)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:208)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)rn at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)rn at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)rn at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:692)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:724)rn at test.HibernateUtil.getSessionFactory(HibernateUtil.java:32)rn at test.PersonManager.createAndStorePerson(PersonManager.java:20)rn at test.PersonManager.main(PersonManager.java:9)rnCaused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.mysql.jdbc.Driver]rn at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:229)rn at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.loadDriverIfPossible(DriverManagerConnectionProviderImpl.java:161)rn at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildCreator(DriverManagerConnectionProviderImpl.java:117)rn at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:73)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:217)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:189)rn at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:145)rn at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66)rn at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:234)rn ... 16 morernCaused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driverrn at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:217)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:424)rn at java.lang.ClassLoader.loadClass(ClassLoader.java:357)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:348)rn at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:226)rn ... 27 more[/color]rnrnrn[b]HibernateUtil.java[/b]rn[code=java]package test;rnrnimport org.hibernate.SessionFactory;rnimport org.hibernate.cfg.AnnotationConfiguration;rnimport org.hibernate.cfg.Configuration;rnrnrnpublic class HibernateUtil rn /*private static SessionFactory sessionFactory;rnrn static rnrn try rnrn // Create the SessionFactory from hibernate.cfg.xmlrnrn SessionFactory sessionFactory =new AnnotationConfiguration().configure().buildSessionFactory();rnrn catch (Throwable ex) rnrn // Make sure you log the exception, as it might be swallowedrnrn System.err.println("Initial SessionFactory creation failed." + ex);rnrn throw new ExceptionInInitializerError(ex);rnrn rnrn */rnrn public static SessionFactory getSessionFactory() rn SessionFactory sessionFactory =new Configuration().configure().buildSessionFactory();rn return sessionFactory;rnrn rn[/code]rnrn[b]PersonManager.java[/b]rn[code=java]package test;rnrnimport org.hibernate.Session;rnrnpublic class PersonManager rnrn public static void main(String[] args) rnrn createAndStorePerson();rnrn HibernateUtil.getSessionFactory().close();rnrn rnrn rnrn private static void createAndStorePerson() rnrn Session session = // 通过Session工厂获取Session对象rn HibernateUtil.getSessionFactory().getCurrentSession();rn session.beginTransaction(); //开始事务rnrn rnrn Teacher person = new Teacher();rnrn person.setUsername("何小景");rnrn person.setAge(26);rnrn session.save(person);rnrn rnrn session.getTransaction().commit(); // 提交事务rnrn rnrn [/code]rnrn[b]Teacher.java[/b]rn[code=java]package test;rnrnimport java.io.Serializable;rnrnrnimport javax.persistence.*;rnrnimport org.hibernate.annotations.GenericGenerator;rnrnrn@Entity // 表示为实体类rnrn@Table(name="t_teacher") // 表名注解rnrnpublic class Teacher implements Serializable rnrn rnrn private int id;rnrn private String username;rnrn private int age;rnrn rnrn @Id // 表示主键rnrn @GenericGenerator(name = "generator", strategy = "native") @GeneratedValue(generator = "generator") // 自增长rnrn @Column(name = "id") // 类属性对应着表字段rnrn public int getId() rnrn return id;rnrn rnrn public void setId(int id) rnrn this.id = id;rnrn rnrn rnrn @Column(name="t_username") // 类属性对应着表字段rnrn public String getUsername() rnrn return username;rnrn rnrn rnrn public void setUsername(String username) rnrn this.username = username;rnrn rn rnrn @Column(name="t_age") // 在实体类属性进行注解,类属性对应着表字段rn public int getAge() rnrn return age;rnrn rnrn public void setAge(int age) rnrn this.age = age;rnrn rn rn[/code]rnrn[b]hibernate.cfg.xml[/b]rn[code=java]rnrnrnrnrnrn mysqlrn rn jdbc:mysql://localhost:3306/hxjrn rn rootrn 1234rn rn com.mysql.jdbc.Driverrn rn rn org.hibernate.dialect.MySQLDialectrn rnrnrnrn[/code]rn[size=18px][b][color=#FF0000]rn我导入的包rnejb3-persistence.jarrnhibernate-commons-annotations.jarrnhibernate-jpa-2.0-api-1.0.1.Final.jarrnhibernate-annotations.jar[/color][/b][/size]rnrnrnrnrnrnrnrnrnrnrn把 SessionFactory sessionFactory =new Configuration().configure().buildSessionFactory();改为rn SessionFactory sessionFactory =new AnnotationConfiguration().configure().buildSessionFactory();出现下面错误rn[color=#FF0000]SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".rnSLF4J: Defaulting to no-operation (NOP) logger implementationrnSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.rn四月 22, 2017 3:01:16 下午 org.hibernate.Version logVersionrnINFO: HHH000412: Hibernate Core 5.1.0.Finalrn四月 22, 2017 3:01:16 下午 org.hibernate.cfg.Environment rnINFO: HHH000206: hibernate.properties not foundrn四月 22, 2017 3:01:16 下午 org.hibernate.cfg.Environment buildBytecodeProviderrnINFO: HHH000021: Bytecode provider name : javassistrnException in thread "main" java.lang.NoSuchFieldError: namingStrategyrn at org.hibernate.cfg.AnnotationConfiguration.reset(AnnotationConfiguration.java:250)rn at org.hibernate.cfg.Configuration.(Configuration.java:125)rn at org.hibernate.cfg.Configuration.(Configuration.java:119)rn at org.hibernate.cfg.AnnotationConfiguration.(AnnotationConfiguration.java:108)rn at test.HibernateUtil.getSessionFactory(HibernateUtil.java:32)rn at test.PersonManager.createAndStorePerson(PersonManager.java:20)rn at test.PersonManager.main(PersonManager.java:9)rnrn[/color]rnrn
二叉树的问题,调试出现Access Violation,为什么?求解答。
#include rn#include rn#include rn#define OVERFLOW -2rnrntypedef struct BiTNodern char data;rn struct BiTNode *lchild,*rchild;rnBiTNode,*BTree;rnrnBTree CreateBTree(BTree &T)rn char a;rn scanf("%c",&a);rn if(a =='#')rn T=NULL;rn elsern T=(BiTNode *)malloc(sizeof(BiTNode));rn if(!T)rn exit(OVERFLOW);rn T->data=a;rn CreateBTree(T->lchild);rn CreateBTree(T->rchild);rn rn rnrn return T;rnrnrnint GetBTreeDepth(BTree &T) //求二叉树的深度rnrn if(T==NULL)rn return 0;rn else rn int d1 = GetBTreeDepth(T->lchild );rn int d2 = GetBTreeDepth(T->rchild );rn if(d1>=d2)return d1+1;rn else return d2+1;rn rnrnrnrnint LeafCount(BTree &T)//求二叉树中叶子结点的数目rnrn if(!T) return 0; rn else if(!T->lchild&&!T->rchild) return 1; rn else return LeafCount(T->lchild)+LeafCount(T->rchild);rnrn/*rnvoid PreOrderTraverse(BTree T, char (*Visit)(char e))rnrn if(T)rn rn Visit(T->data);rn PreOrderTraverse(T->lchild,Visit);rn PreOrderTraverse(T->rchild,Visit); rn rnrnchar Visit(char e)rnrn printf("%c",e);rn return 1;rnrnrn*/rnvoid main()rnrn BTree T = NULL;rn printf("请输入二叉数的结点序列:\n");rn T = CreateBTree(T);rn// PreOrderTraverse(T,Visit);rn printf("二叉树的深度为:%d\n",GetBTreeDepth(T));rn printf("二叉树节点数为:%d\n",LeafCount(T));rnrnrn
为什么行不通呢个求大神解答
[code=javascript]rnvar shopping = document.getElementById("purchases");rnvar items = shopping.document.getElementsByTagName("li");rnalert(items.length);[/code]rnrn为什么不出提示框呢,ul的id名是purchases,rnli包含在这个purchases里边,为什么获取长度没反应呢,怎么行不通呢?
求大神解答,谢谢
grant selectrnon table 职工,部门rnto 王明rnrnrnrn消息102,级别15,状态1,第2行rn','附近有语法错误。
新手求大神解答!!
最近学习javaweb的servlet,做了一个查询 跳转完了总是空白页rnconsole里是这样的rn严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:579)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn ... 39 morern
thinkphp求大神解答
我有一个form表单 rn rn1:rn2:rn3:rn4:rnrn我想把 1存到一个数据表 2存到另一个数据表 3存到另外一个数据表里, 这个东西应该怎么写,或者大神忘记我这个表单 直接给个方法 求帮助!!!
面试题,求大神解答
请用C#实现以下功能rn1.一个winform程序,内嵌浏览器访问一个html页面,显示html内容rn2.在html页面中创建一个按钮A,点击按钮可以显示又winform弹出的对话框rn3.在winform程序界面上,创建一个按钮B,点击后,显示又html javascript弹出的消息提示框rn4.由winform程序界面上,创建一个按钮C,点击后将一个js函数注入到浏览器的html中,改变按钮A的点击效果,
tomcat报错 求大神解答!
rn错误信息如下。。 我百度了一下都是说连接不了数据库,但是解决方法都不管用rnrnERROR JDBCExceptionReporter:78 - Cannot create PoolableConnectionFactory (到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect)rnrn我做了很多尝试,但是都没用,不知道问题出在哪? 我是做前端的,这个后台java程序不是我写的 所以具体该怎么处理这个东西??
求大神解答
using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnrnnamespace 写一个读入整数的方法rnrn class Programrn rn static void Main(string[] args)rn rn Console.WriteLine("请输入你的年龄");rn int age = Console.[color=#FF0000]ReadInt();rn[/color] Console.WriteLine("你刚刚输入的年龄为:");rn rn public static int ReadInt()rn rn int number = 0;rn dorn rn tryrn rn number=Convert.ToInt32(Console.ReadLine());rn rn catchrn rn Console.WriteLine("你输入有误,请重新输入");rn return number;rn rn rn while (true);rn rn rn rnrn[color=#FF0000][b]]错误提示:错误 1 “System.Console”并不包含“ReadInt”的定义 rn[/b][/color]
求大神帮忙解答!!
大神,您好:rn 小弟遇到了下面的代码:rn [code=java]<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rnString errorMessage=(String)request.getAttribute("errorMessage");rn%>rn//七rnrnrnrn rn 远程医患交流平台-登陆rn rnrnrnrnrn rn rn rn rn rn rn 账 户:rn 密 码: rn 用户类型:医生用户患者用户管理员 rn <%rn if(errorMessage!=null) %>rn <%=errorMessage %>rn <% rn %>rnrnrn rn rn rn rn rn rn rn rn rnrnrnrn[/code]rn 下图为代码运行效果:rn [img=https://img-bbs.csdn.net/upload/201601/20/1453219648_447217.jpg][/img]rn 求高手点拨:rn 这个类型的 “表单提交 ”的机制,在哪行代码体现?rn 并且,这个类型的用户,单击图片中的“登陆”按钮后,应该触发了服务器验证用户是否合法的流程中。rn 上面:“单击图片中的登陆按钮后,登入系统。这一行 ”伪代码“, 要是换成对应的Java代码或者Jsp代码的话,应该分别走哪几行代码?rn 希望高手,能够指教!!rn 小弟,100分奉上!!rn [img=https://img-bbs.csdn.net/upload/201601/20/1453220877_494394.png][/img]
求大神解答!!!
例题:打印1到5的阶乘值。rnint fac(int n)rnrn static int f=1;rn f=f*n;rn return(f);rnrnmain()rnrn int i;rn for(i=1;i<=5;i++)rn printf("i=%d,fac(i)=%ld\n",i,fac(i));rnrnrnrn按照书上打的,但是电脑编译不出来,有错误。请问,哪里错了?
求大神帮忙解答
写程序帮李老师把2 组学生配对。有两组学生,A 组跟 B组。每个学生有自己的分数,分rn数为1 到100 的整数。一个 A 组的学生能跟一个 B组的学生配成一对,条件是两个学生分rn数差别不能超过某非负整数 k 。每一对包含一个 A 组的学生跟一个 B组的学生。每个学生rn只能参与一对不能参与多对。rn程序需要从标准输入(stdin)读问题数据,包括 3 行。第一行有 3 个整数,第一是 k ,第rn二是A 组的人数,第三是 B组的人数。第二第三行分别是 A 组 B组学生的分数,空各字符rn为定界符。答案为最多能配对的数量。程序需要把答案写到标准输出(stdout)。rn输入例子1:rn3 4 5rn1 1 0 2 0 2 6rn2 7 1 4 2 3 1 0 0rn输出例子1:rn3rn输入例子2:rn0 5 5rn1 7 4 5 0 2 3 1 0rn1 0 5 0 2 3 7 4 1 0 0rn输出例子2:rn4rn
新手 求大神解答
[img=https://img-bbs.csdn.net/upload/201612/22/1482372220_679957.png][/img] 这个问题怎么解决 就一个c#登陆界面密码验证的问题 用mysql 这里就是不行为什么啊 求大神详细解答下 万分感谢rn
求大神解答啊
[img=https://img-bbs.csdn.net/upload/201605/31/1464676561_22731.png][/img]
flash求大神解答
小弟,做了一个简单的,flash与vb结合的程[img=https://img-bbs.csdn.net/upload/201504/01/1427849436_788729.png][/img]序,就是flash 与vb交互,在排版方面遇到问题,想要让中间的FLVPlayback全屏展示该如何操作
求大神解答技术问题?
[img=https://img-bbs.csdn.net/upload/201702/11/1486790047_79897.png][/img]rn这是我在百度搜索中看到的 点击上一页下一页 整个页面不会刷新,只刷新这一块内容,而且还是带条件的进行查询的,这个用到的什么技术???
java.lang.InstantiationException,求大神解答!
严重: Servlet.service() for servlet spring threw exceptionrnjava.lang.InstantiationExceptionrn at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:104)rn at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.createAttribute(ModelAttributeMethodProcessor.java:136)rn at org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor.createAttribute(ServletModelAttributeMethodProcessor.java:81)rn at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:102)rn at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:75)rn at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:162)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:123)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mvc.util.LoginFilter.doFilter(LoginFilter.java:27)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.mvc.util.SystemContextFilter.doFilter(SystemContextFilter.java:29)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)rn at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rnrn这是我在做spring MVC 文件上传所出现的异常,所用上传jar 包是jspSmartUpload.jar,求解rnrn这是后台方法rn[img=https://img-bbs.csdn.net/upload/201312/06/1386301764_604549.png][/img]rn这是前台jsprn[img=https://img-bbs.csdn.net/upload/201312/06/1386301781_102306.png][/img]rnrn
初学者求大神解答
protected void Button1_Click(object sender, EventArgs e)rn rn string name = Session["Vipname"].ToString();rn string userid = Session["Vipcard"].ToString();rn string zhuti = txt_zhutiadd.Text.ToString();rn string neirong = txt_neirongadd.Text.ToString();rn //string time = DateTime.Now.ToString();rn string sConn = ConfigurationManager.ConnectionStrings["ConnStr"].ToString();rn using (SqlConnection Conn = new SqlConnection(sConn))rn rn Conn.Open();rn using (SqlCommand cmd = new SqlCommand("Insert INTO [Liuyan] ([lytitle], [lycontent] ,[username] , [userid]) VALUES (@zhuti,@neirong,@name,@userid)", Conn))rn rn cmd.Parameters.AddWithValue("@zhuti", zhuti);rn cmd.Parameters.AddWithValue("@neirong", neirong);rn //cmd.Parameters.AddWithValue("@time", time);rn cmd.Parameters.AddWithValue("@name", name);rn cmd.Parameters.AddWithValue("@userid", userid);rn cmd.ExecuteNonQuery();rn rn rn rn rn总是报错,看了半天实在是看不出哪里错了,求大神解答rnrn编译不报错 运行出错rnrn行 40: cmd.Parameters.AddWithValue("@name", name);rn行 41: cmd.Parameters.AddWithValue("@userid", userid);rn行 42: cmd.ExecuteNonQuery();rn行 43: rn行 44: rn rnrn
求mfc大神解答
创建了Cdialog类怎么找不到相关类的Dlg.cpp
求大神解答!!!!!
这段代码为什么可以弹出来1不能弹出来2???????![图片](https://img-ask.csdn.net/upload/201703/23/1490226986_352921.png)
异常错误,求大神解答
![![图片说明](https://img-ask.csdn.net/upload/201606/04/1465022376_985865.png)图片说明](https://img-ask.csdn.net/upload/201606/04/1465022369_81740.png)
离散数学,,,求大神解答
求 (¬p∨¬q)→(p↔¬q)的主析取范式和主合取范式n求解答求解答求解答求解答求解答求解答
求大神解答!
我是个小白,最近一直在研究怎样上谷歌,都快要哭了!哪位大佬给解答一下,现在怎么翻墙啊!
新人,求大神解答!!!!
为什么我下android studio里java中没有src,也没有gen文件?会对我的编程有影响吗?![图片](https://img-ask.csdn.net/upload/201611/13/1478967421_859164.jpg)
求大神解答而已
[img=https://img-bbs.csdn.net/upload/201504/15/1429109837_984843.jpg][/img]rnrn这是我们学校Linux兴趣小组的官网首页rn因为快纳新了 所以先出一个 免试题来rn先看这个免试题吧 一开始我也很疑惑 不知道干什么 昨天听一个同学说了说rn这是主页 然后不论点下面的哪个选项 都是一直显示主页rn应该这就是问题吧 如何破解还是什么?rn我也不知道 我只是起步的菜鸟rn但是我也想进实验室 想掌握更好的技术rn所以 有没有大神告诉我 rn这是什么原理或者主要想搞什么rn谢谢
求大神解答查错
#includern#includern#includernusing namespace std;rnstruct flight //航班信息rnrn char a1[10]; //航班号rn string a2; //起飞时间rn string a3; //降落时间rn char a4[10]; //起飞城市rn char a5[10]; //降落城市rn int a6; //价格rn int a7; //票价折扣 rn int a8; //余票rnfl[10];rnstruct customer //客户信息rnrn char name[10]; //定义字符型数组姓名name[10]rn int seat; //定义整型变量座位号seatrn char num[10]; //定义字符型数组航班号num[10]rn char no[18]; //证件号norn int ps; //订票数psrn string qfs; //起飞时间qfsrn string jls; //降落时间jlsrn char qfd[10]; //起飞城市qfdrn char jld[10]; //降落城市jldrn int pj; //票价pjrncu[200];rnint cnum=3;rnint len=0;rnint A=0;rnvoid luru(); //声明录入函数rnvoid chaxun(); //声明查询函数rnvoid chaxun1(); //声明查询方式1函数rnvoid chaxun2(); //声明按查询方式2函数rnvoid dingpiao(); //声明订票函数rnvoid tuipiao(); //声明退票函数rnvoid xiugai(); //声明修改函数rnvoid menu(); //声明主菜单函数rnvoid duqu(); //声明文件读取函数rnvoid tuichu(); //声明退出并保存函数rnrnrnvoid luru() //航班信息录入rn rn cout<<"请输入航班信息:"<>fl[len].a1; //录入航班号rn cout<<"起飞时间"<>fl[len].a2; //录入起飞时间rn cout<<"降落时间"<>fl[len].a3; //录入降落时间rn cout<<"起飞城市"<>fl[len].a4; //录入起飞城市rn cout<<"降落城市"<>fl[len].a5; //录入降落城市rn cout<<"票价"<>fl[len].a6; //录入票价rn cout<<"折扣"<>fl[len].a7; //录入机票折扣rn cout<<"剩余票量"<>fl[len].a8; //录入剩余票量rn len++;rn cout<<"请选择所要进行的操作"<>t; //选择查询方式rn switch(t)rn rn case 1:rn chaxun1();rn break;rn case 2:rn chaxun2();rn break;rn default:cout<<"输入的数据有误,请重新输入!"<>n;rn for(int j=0;j>m1>>m2; //输入起始城市和降落城市rn for(j=0;j>Name; //输入乘客姓名rn cin>>fn; //输入乘客所要订的航班号rn for(int i=0;i0) rn strcpy(cu[A].name,Name);rn strcpy(cu[A].num,fn);rn cu[A].seat=fl[i].a8;rn A++;fl[i].a8--;sign=1;rn cout<<"订票成功!"<>Name; //输入乘客姓名rnrn cout<<"请输入航班号:";cin>>fn;cout<>num;int z=0;int j;rn for(int z=0;z>fl[j].a2;cout<<"达到时间:";cin>>fl[j].a3;cout<(&cu[i])),sizeof(customer));cout<<"写入成功!"<(&fl[i])),sizeof(flight));//将航班信息写入文件rn infile1.close(); //关闭文件rnrnrnvoid duqu() //读取文件信息rn rn ifstream infile1("airline.dat",ios_base::binary); rn while(infile1.peek()!=EOF) rn rn infile1.read((reinterpret_cast(&fl[len])),sizeof(flight));//输入方式读取文件rn cout<<"***航班信息****"<(&cu[A++])),sizeof(customer)); //输入方式读取文件rn infile2.close(); //关闭文件rn getchar();system("cls");rnrnvoid menu()rnrn cout<<"*******************航班订票系统*********************"<>i; //选择菜单rn switch(i)rn rn case 1:rn luru(); rn break;rn case 2:rn chaxun(); rn break;rn case 3:rn dingpiao();menu();rn case 4:rn tuipiao();rn menu();rn case 5:rn xiugai();rn menu();rn case 6:rn tuichu();rn exit(1); //退出rn break;rn default:cout<<"输入的选项不合法,请重新输入"<
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数