这个报错在VS中怎么解决啊?求助!!!

from itertools import groupby
import pygal
import json

#将数据加载到一个列表中
filename = 'btc_close_2017.json'
with open(filename) as f:
btc_data = json.load(f)

dates = []
months = []
weeks = []
weekdays = []
close = []
#每一天的信息
for btc_dict in btc_data:
dates.append(btc_dict['date'])
months.append(int(btc_dict['month']))
weeks.append(int(btc_dict['week']))
weekdays.append(btc_dict['weekday'])
close.append(int(float(btc_dict['close'])))

def draw_line(x_data, y_data, title, y_legend):
xy_map = []
for x,y in groupby(sorted(zip(x_data, y_data)), key=lambda _: _[0]):
y_list = [v for _, v in y]
xy_map.append([x, sum(y_list)/len(y_list)])
x_unique, y_mean = [*zip(*xy_map)]
line_chart = pygal.Line()
line_chart.title = title
line_chart.x_labels = x_unique
line_chart.add(y_legend, y_mean)
line_chart.render_to_file(title + '.svg')
return line_chart

idx_month = dates.index('2017-12-01')
line_chart_month = draw_line(months[:idx_month], close[:idx_month], '收盘价月日均值', '月日均值')
line_chart_month

0
qq_36753831
qq_36753831 求助 VS中写了这段代码 一直报错
3 个月之前 回复
qq_36753831
qq_36753831 TypeError("object of type 'int' has no len()",)
3 个月之前 回复

1个回答

无非是包不完整,或者是csv文件数据不对,参考这个
https://juejin.im/post/5b0d79156fb9a00a277f0bb2
完全按照它的环境和数据试下。

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
kindEditor 插入图片报错,这个怎么解决啊?
An error occurred at line: 118 in the jsp file: /kindeditor/jsp/upload_json.jsprnJSONObject cannot be resolved to a typern115: %>rn116: <%!rn117: private String getError(String message) rn118: JSONObject obj = new JSONObject();rn119: obj.put("error", 1);rn120: obj.put("message", message);rn121: return obj.toJSONString();rnrnrnAn error occurred at line: 118 in the jsp file: /kindeditor/jsp/upload_json.jsprnJSONObject cannot be resolved to a typern115: %>rn116: <%!rn117: private String getError(String message) rn118: JSONObject obj = new JSONObject();rn119: obj.put("error", 1);rn120: obj.put("message", message);rn121: return obj.toJSONString();rnrnrnAn error occurred at line: 109 in the jsp file: /kindeditor/jsp/upload_json.jsprnJSONObject cannot be resolved to a typern106: return;rn107: rn108: rn109: JSONObject obj = new JSONObject();rn110: obj.put("error", 0);rn111: obj.put("url", saveUrl + newFileName);rn112: out.println(obj.toJSONString());rnrnrnAn error occurred at line: 109 in the jsp file: /kindeditor/jsp/upload_json.jsprnJSONObject cannot be resolved to a typern106: return;rn107: rn108: rn109: JSONObject obj = new JSONObject();rn110: obj.put("error", 0);rn111: obj.put("url", saveUrl + newFileName);rn112: out.println(obj.toJSONString());rnrnrnStacktrace:rn at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)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:121)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)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:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)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:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rnat org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rnat java.lang.Thread.run(Thread.java:745)
这个报错要怎么解决啊?
Configuration Error rnDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. rnrnParser Error Message: Child nodes not allowed.rnrnSource Error: rnrnrnLine 89: rnLine 91: rnLine 92: rnLine 93: rn rn
这个bug怎么解决啊??一直报错。。
报错:rnContext initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerServiceImpl': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: WEB-INF/classes/com/sanqing/po/Quotation (wrong name: com/sanqing/po/Quotation)rnrnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: WEB-INF/classes/com/sanqing/po/Quotation (wrong name: com/sanqing/po/Quotation)rnrnCaused by: java.lang.NoClassDefFoundError: WEB-INF/classes/com/sanqing/po/Quotation (wrong name: com/sanqing/po/Quotation)rn我搜索了好久,还是解决不了问题。。rn以下是beans.xmlrn[code=text]rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rn下面这个是persistence.xmlrnrn[code=text]rnrnrn rn org.hibernate.ejb.HibernatePersistencern rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn[/code]rn快两天了,还是没解决。。求助。。
[求助大牛]这个问题怎么解决啊?
每次使用hp unix机器的vi打开一个log文件时, 如果一行太长, 它就不往后面显示了, 并提示说: Line too long.rn怎么解决啊?可以怎么设置下吗?
求助,这个编译错误怎么解决啊?
按照官方文档一步一步执行下来,所要求的前提条件都已经准备好,可还是有编译错误rn救命啊!!!rnrn/root/src/sfs1/sfsmisc/rexchan.C: In member function `virtual void unixfd::data(svccb*)':rn/root/src/sfs1/sfsmisc/rexchan.C:254: error: no matching function for call to `_wrap(const char[5], const char[26], const char[34], const char[37], unixfd* const, void (unixfd::*)(int, int), )'rngmake[2]: *** [rexchan.lo] 错误 1rngmake[2]: Leaving directory `/root/sfs-build/sfsmisc'rngmake[1]: *** [all-recursive] 错误 1rngmake[1]: Leaving directory `/root/sfs-build'rngmake: *** [all] 错误 2rnrn
[求助]这个问题怎么解决啊???
rn大家好!rnrn这个问题以前问过的,不过我现在还是没做出来,头痛啊!rnrn问题是这样的:rnrn页面上有姓名,班级,学号,成绩几个文本框,要求在学号文本框中输入学号后,其它的姓名,班级,成绩根据输入的学号自动出现,这些功能是在一个页面一个表单中实现,我现在的情况是,我在一页面中实现了,可用了两个表单,在学号输入完后,加了一个提交按钮,这样太麻烦了,我想在一个页面中输入完学号后不用提交按钮,其它的几项也自动出现,怎么实现 啊!!!急,帮帮俺吧!!!!rnrn谢谢啊!!!!rn
求助~~这个怎么解决
[img=http://hi.csdn.net/attachment/201110/21/3400749_1319179378w79t.gif][/img]rnrn如上图,当我点击添加按钮实现多条记录同时添加后,在我的显示页面变成这样了,但我想一个记录一个记录显示~~rnrnrn就是同时添加多条记录后,在显示页面上一个个显示,
这个怎么解决啊
2011-10-29 9:45:26 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Program Files\jdk1_6_0_12\bin;E:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\binrn2011-10-29 9:45:26 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-10-29 9:45:26 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 419 msrn2011-10-29 9:45:26 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-10-29 9:45:26 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2011-10-29 9:45:26 org.apache.catalina.startup.HostConfig deployWARrn信息: Deploying web application archive displaytag.warrn2011-10-29 9:45:28 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2011-10-29 9:45:28 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rnlog4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).rnlog4j:WARN Please initialize the log4j system properly.rn2011-10-29 9:45:30 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$MethodInjectorrnFile: ContainerImpl.javarnMethod: injectrnLine: 295 - com/opensymphony/xwork2/inject/ContainerImpl.java:295:-1rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExceptionrn at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:295)rn at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:431)rn at com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)rn at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)rn at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)rn at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)rn at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)rn at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)rn at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:252)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)rn ... 29 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:293)rn ... 42 morernCaused by: java.lang.ExceptionInInitializerErrorrn at com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:85)rn ... 47 morernCaused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!rn at ognl.OgnlRuntime.(OgnlRuntime.java:165)rn ... 48 morernCaused by: java.lang.ClassNotFoundException: javassist.ClassPoolrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:169)rn at ognl.OgnlRuntime.(OgnlRuntime.java:162)rn ... 48 morern2011-10-29 9:45:30 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-10-29 9:45:30 org.apache.catalina.core.StandardContext startrn严重: Context [/Struts2_0110] startup failed due to previous errorsrn2011-10-29 9:45:30 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-10-29 9:45:30 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-10-29 9:45:30 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/47 config=nullrn2011-10-29 9:45:30 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3910 msrn
这个怎么解决啊?
500 Internal Server Errorrnjava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid parameter binding(s). at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.validateParameters(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.validateParameters(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.preImplExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source) at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source) at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown Source) at _search._jspService(search.jsp:39) [/search.jsp] at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)rn
请问这个报错怎么解决?
[ESSR0753]Property(createdate) of entity(TbNotify) is invalid. TemporalType must be specified for persistent properties of type for java.util.Date and java.util.Calendar.
这个报错怎么解决????????????????急
我在bcb中编写了一个ocx,在.net中使用时出现"未能实例化这个控件,说是这需要设计时授 权".但是在vc中使用时没有问题.请问怎么解决呢?在.net或bcb中应该怎么做?
这个类型转化报错怎么解决?
代码是这样的~rn[img=https://img-bbs.csdn.net/upload/201405/16/1400234888_130349.jpg][/img][img=https://img-bbs.csdn.net/upload/201405/16/1400234925_808408.jpg][/img]rn怎么改?我之前两端代码也是这么写的都没有错,就这个有错~~~
这个报错该怎么解决
各位前辈:rn  我现在正学编程。可一开始就给难住了。情况是这样的:rn我学习的是《windows 程序设计》第5版。因为刚拿到书不久,所以还没有仔细看,就忙着上机做试验。第三章的试验hellowin.c 这个例程, 我照着编完以后,编译时没有报错,但是当我进行“构建hellowin.exe"时报出了以下的错误:rnrnrnrnrn--------------------Configuration: hellowin - Win32 Debug--------------------rnLinking...rnhellowin.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12rnDebug/hellowin.exe : fatal error LNK1120: 1 unresolved externalsrnError executing link.exe.rnrnhellowin.exe - 2 error(s), 0 warning(s)rnrnrn开始我以为是我编写时,可能什么地方因为粗心了,输入错误,于是在栓查不出来的情况下把原程序给拷了去,再进行构建时还是以上的错误。rnrnrn  我有msdn.但是我的英文阅读能力太差了,越看我头越大。所以就来让前辈们指点一下。rnrn我用的编程工具是 VC++6.0版 。完整的例程如下:rn/*------------------------------------------------------------rn HELLOWIN.C -- Displays "Hello, Windows 98!" in client arearn (c) Charles Petzold, 1998rn ------------------------------------------------------------*/rnrn#include rnrnLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;rnrnint 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 rn hwnd = CreateWindow (szAppName, // window class namern TEXT ("The Hello Program"), // window captionrn WS_OVERLAPPEDWINDOW, // window stylern CW_USEDEFAULT, // initial x positionrn CW_USEDEFAULT, // initial y positionrn CW_USEDEFAULT, // initial x sizern CW_USEDEFAULT, // initial y sizern NULL, // parent window handlern NULL, // window menu handlern hInstance, // program instance handlern NULL) ; // creation parametersrn rn ShowWindow (hwnd, iCmdShow) ;rn UpdateWindow (hwnd) ;rn rn 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 ;rn rn switch (message)rn rn case WM_CREATE:rn PlaySound (TEXT ("hellowin.wav"), NULL, SND_FILENAME | SND_ASYNC) ;rn return 0 ;rnrn case WM_PAINT:rn hdc = BeginPaint (hwnd, &ps) ;rn rn GetClientRect (hwnd, &rect) ;rn rn DrawText (hdc, TEXT ("Hello, Windows 98!"), -1, &rect,rn DT_SINGLELINE | DT_CENTER | DT_VCENTER) ;rn EndPaint (hwnd, &ps) ;rn return 0 ;rn rn case WM_DESTROY:rn PostQuitMessage (0) ;rn return 0 ;rn rn return DefWindowProc (hwnd, message, wParam, lParam) ;rnrnrnrnrn我第一次参加csdn,不知道怎么散分。在这里只有先谢过各位前辈了。
这个报错该怎么解决?
错误1 无法创建“DoctorWorkStation\MedicalRecord\frmSubDiseaseTrack.resx”的清单资源名称。未能找到文件“D:\gs_d\hh\test1\iCare_gxqyy\iCare_gxqyy\code\EMR\iCare\DoctorWorkStation\MedicalRecord\frmSubDiseaseTrack.cs”。
oracle这个报错怎么解决
ORA-02042: 分布式事务处理过多rnORA-02063: 紧接着line(源于DRUG)rn
虚拟机报错,怎么解决啊
此产品过期你的虚拟机不能被开启。rnBe sure that your host machine's data and time are set correctly.rnrnThere is a more recent version available at the VMware WordStation Web site:Http://www.vmware.com/info?id=4
求助:这个错误怎么解决?!
库在这里:rn[url=http://access911.net/csdn/FileDescription.asp?mdb=2009-7-7&id=14][/url]rnrn登陆用户:adminrn密码:123rnrn问题1:点了文件导入 如果没有选择文件就取消对话框,弹出错误,导致其他按钮也出错,怎么办?rnrn问题2:打印PO单里,怎么让rnME.YYBBrnMe.YYBB1rnMe.DYBBrnMe.DYBB1rnMe.增值税无价版rnMe.普通票无价版rn默认为灰色,然后根据查找出来的PO单号的含税和不含税单价来判断:rn当查找出来的PO单号的含税单价>0,Me.YYBB1,Me.DYBB1,Me.普通票无价版可以点,ME.YYBB,Me.DYBB,Me.增值税无价版不可点;rn当不含税单价>0,ME.YYBB,Me.DYBB,Me.增值税无价版可以点,Me.YYBB1,Me.DYBB1,Me.普通票无价版不可点rnrn
求助-怎么解决这个问题~
rn 销售已知如下关系模式:rn rn 商店(店号,店名,地址,电话) rn 药品 (品号,品名,单价)rn 商品(店号,品号,数量)rn试完成如下设计:rn(1)建立相应的数据库shop及其表T1,T2,T3;并将程序保存在p1.sql文件中.rn(2)要求实现实体完整性约束;rn(3)分别输入5条以上的相关记录(输入的数据时验证完整性约束的实现能力);并将程序保存在p2.sql文件中.rn(4)由以上数据库结构,构造如下视图文件:rn T4(店名,品名,数量)输出所有相关的信息。rn 并将程序保存在p3.sql文件中.rn(5)编程显示所有销售金额大于1000元的商品名称和金额,rn 并将程序保存在p4.sql文件中.rn
求助--这个问题怎么解决
下面这段程序,在我的机器上运行不了,可是转到别人的机器上却可以??rn我重装系统后,可以,但是过一会(装nortont, 天网)就又不行了。情大家帮忙rn想一想为什么!!rnrnrnrn 计数器2 rn rn rn rn rnrnrnrn<% rn countfile=server.mappath("txtcount.txt")rn response.write countfilern set myfile=server.createobject("scripting.filesystemobject")rn response.write countfilern set mytext=myfile.opentextfile(countfile,1,false,false)rn visit=mytext.readlinern visit=visit+1rn myvisit=visitrn set mytext=myfile.createtextfile(countfile,true,false)rn mytext.writeline(Visit)rn%>rn 您是本站的第rn <%=myvisit%>rn 位浏览者rnrnrn
这个怎么操作??求助啊
KSH YXDH ZYDH ZYH CJ TZCJ TDCJ ZYZTrn08500101111511 3113 04 1 617.000 637.000 637.000 NULLrn08500101111511 3113 10 2 617.000 637.000 637.000 NULLrn08500101111511 3113 29 3 617.000 637.000 637.000 NULLrn08500101111511 3501 21 7 617.000 637.000 637.000 NULLrn08500101111511 3501 18 8 617.000 637.000 637.000 NULLrn08500101111511 1141 02 9 617.000 637.000 637.000 NULLrn字段ZYH这个中间断了。我想吧它变成按顺序的123456,789分别变成456怎么。SQL语句怎么去写!rn谢谢
VS中解决scanf安全报错问题
VS中解决scanf不安全报错 最近喜欢上VS了,但VS有个最大的问题让我很难受——就是scanf()报错问题,微软自己加很多输入的安全函数,scanf_s()等,虽然初衷很好,让输入更安全,但是其它IDE都不支持该函数,所以,就很麻烦了,通过各种搜索,终于找到一个算是一劳永逸的办法,不敢独享,拿出来和大家分享,希望大家能喜欢。 首先,找到VS的安装目录,比如我的安装目录为: 然后,搜索...
解决VS中scanf printf报错问题
1. 方法一 在代码开头加入 #define _CRT_SECURE_NO_WARNINGS 2. 方法二 将scanf和printf替换成scanf_s和printf_s
没有装vs怎么解决这个问题?
“/crbbi/web”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rn分析器错误 rn说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 rn分析器错误信息: 未能加载类型“web.Global”。rn源错误: rn行 1: <%@ Application Codebehind="Global.asax.vb" Inherits="web.Global" %>rn源文件: F:\aspnet\crbbi\web\global.asax 行: 1 rn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
这个问题怎么解决啊?
Dim recno As Integerrn Dim str As String = System.IO.Directory.GetCurrentDirectory & "\db1.mdb"rn Dim con As New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source='" & str & "'")rn Dim cmd As New OleDbCommand("Select * from user", con)rn Dim da As New OleDbDataAdapter(cmd)rn Dim ds As New DataSet()rnrnrn定义一个变量i,如何把user表中的id为3的那么name列的值赋值给i?
看看这个怎么解决啊
由于下列错误,Smart Card Helper 服务启动失败: rn系统找不到指定的文件rnrn这个错误怎么解决啊?
这个问题怎么解决啊~~~~~~~~~~~
页面后面有参数,pageindex和mode等,rn我用request.queststring可以获得pageindex和mode参数。rn但是怎么可以改变其中一个参数,如使pageindex+1rn而不改变其他参数,然后再传到当前页面里。rn因为我的参数很多,请用request里的成员实现。rn-------------------------------------------rn如 -->frmPdsList.aspx?orderby=aaa&mode=asc&pageindex=1rn改 -->frmPdsList.aspx?orderby=aaa&mode=asc&pageindex=2
这个错误,怎么解决啊?
在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。rn在生成解决方案的时候出现如此错误,请高手指点
请问这个怎么解决啊?
错误类型:rnADODB.Field (0x800A0BCD)rnBOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录rnrn我实在找不出来啦~~谢谢各位大哥
这个问题怎么解决啊??
Server Error in '/gb' Application.rn--------------------------------------------------------------------------------rnrn操作必须使用一个可更新的查询。 rnDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. rnrnException Details: System.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。rnrnSource Error: rnrnThe source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:rnrn1. Add a "Debug=true" directive at the top of the file that generated the error. Example:rnrn <%@ Page Language="C#" Debug="true" %>rnrnor:rnrn2) Add the following section to the configuration file of your application:rnrnrn rn rn rnrnrnNote that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.rnrnImportant: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. rnrnStack Trace: rnrnrn[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]rn System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +267rn System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +192rn System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +48rn System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106rn System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +108rn ASP.addinfo_aspx.page_load(Object sender, EventArgs e) +729rn System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13rn System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +45rn System.Web.UI.Control.OnLoad(EventArgs e) +98rn System.Web.UI.Control.LoadRecursive() +71rn System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4310rnrn rnrnrn--------------------------------------------------------------------------------rnVersion Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
这个错误怎么解决啊?
unexpected end of file while looking for precompiled header directivernrn代码如下:rn.h rnrn#if !defined(AFX_DEMODIAMOND_H__92788CA9_C529_4500_B237_19ED27A53258__INCLUDED_)rn#define AFX_DEMODIAMOND_H__92788CA9_C529_4500_B237_19ED27A53258__INCLUDED_rnrn#if _MSC_VER > 1000rn#pragma oncern#endif // _MSC_VER > 1000rnrnclass CDiam rnrnpublic:rn CDiam();rn CDiam(int type);rnrn ~CDiam();rn rn void Init(CDC * pDC,int type,int x,int y);rnprivate:rn int m_type;rn// int _x,_y;rnrn;rnrn#endif // !defined(AFX_DEMODIAMOND_H__92788CA9_C529_4500_B237_19ED27A53258__INCLUDED_)rnrnrn.cpprnrnrnrn#include "Diam.h"rnrnCDiam::CDiamrnrn rnrnrnCDiam(int type) : m_type(type)rnrnrnrnrnCDiam::~CDiam()rnrnrnrnvoid CDiam::Init(CDC * pDC,INT int type,int x,int y)rnrn rn switch(type)rn rn case 0 :rn CBrush br(RGB(255,0,0));rn CBrush * OldBrush = pDC->SelectObject(&br);rn pDC->Rectangle(0+x,0+y,60+x,20+y);rn pDC->Rectangle(20+x,-20+y,40+x,0+y);rn pDC->SelectObject(OldBrush);rn break;rn case 1 :rn break;rn case 2 :rn break;rn default :rn break;rn rnrn AfxMessageBox("aa");rnrnrn请高手指点 谢谢!rnrn
这个问题怎么解决啊
作一个30台电脑的网络,要用两个交换机,用一个服务器,两个交换机不允许级连,分为两个网段,现在两个网段允许相访
这个问题怎么解决啊!
这个问题怎么解决啊!谢谢rn";rnecho (211*256*256*256+154*256*256+21*256+191)." ";rn?>rn-744876609rn3550090687 rn
这个警告怎么解决啊?
警告: 不能将项目“Register”中的依赖项“PublicClassLib, Version=1.0.2084.30146, Culture=neutral”复制到运行目录,因为它将改写引用“PublicClassLib, Version=1.0.2084.31271, Culture=neutral”。rnrn这个东东怎么解决呢?
这个问题怎么解决啊?
产生斐波那契数列的前10个数。如:1,1,2,3,5,8,13,.....rn应该怎么写啊?rn求大家帮帮忙!rn谢谢!
相关热词 c# 线程顺序 c#昨天当前时间 c# 多进程 锁 c#mysql图片存取 c# ocx 委托事件 c# 读取类的属性和值 c# out 使用限制 c#获取url的id c#怎么进行分页查询 c# update 集合

相似问题

0
H5页面运用iscroll后点击报错,click和a标签失效什么原因?
6
求助大神!使用java发送post请求到后台Resteasy总是报400错误
1
idea,test+selenium java,打开火狐浏览器报错
0
求助!!!oracle服务一重启就报错?而且网上关于这个问题的解决方法都没用,只能重新安装oracle
5
mac安装VirtualBox报错Kernel driver not installed (rc=-1908)怎么解决?
2
萌新求助Android Studio运行一个代码报错 process ' command ' c
1
急求eclipse关于Intent a = Intent这样句子的报错
2
大神求助java导入一个excel2007文件如何转成2003
2
求助大佬:MFC检测扩展显示器时回调函数错误怎么解决?
4
求助大佬:MFC检测扩展显示器时回调函数错误怎么解决。
3
java Spring和mybatis整合时,junit测试时报的错。搞了二个小时了,还没解决。求助
2
求助,使用springboot写了一个小的后台进行取数,基于jdk1.8,打包之后报错 ,服务器jdk版本低
0
求助 appium运行时报错
0
create-react-app 报错无法创建项目,Extracting tar content of undefined failed
4
ztree遇到的问题,一个简单的树,可就是显示不出来.
1
使用ftp 访问 vsftpd 的服务器,报错:500 Illegal PORT command,一直无法解决,请各位帮忙把把脉……
1
大神求助!TomCat配置运行一个小案例一直报错!
0
求助qt大佬 QT for Android 构建运行不成功的解决办法?
2
caffe编译报错求助!!!
0
运行RN的安卓项目报错。