求大神解答,刚学多线程

编写一个多线程程序模拟搬砖过程,用五个线程模拟五个人并行的排成一拍,左边的第一个人左边有无数块砖,要将左边的转依次通过这五个人传到最右边。。。

1个回答

消息队列。要不给每个砖加锁和加个计数,代表轮到第几个人搬

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
刚学java求大神解答
BigDecimal x = new BigDecimal("0.0");rnBigDecimal incr = new BigDecimal("0.1");rnMathContext mc = new MathContext(1, RoundingMode.CEILING);rnfor (int i = 0; i <= 10; i++) rnSystem.out.println(x);rnx = x.add(incr, mc);rn中的x.add是什么意思,以及mathContext 又是什么
刚学Android求大神解答下 ListView分页加载的问题
最近去读取新浪的公共接口想用到上拉加载更多rnString url = "https://api.weibo.com/2/statuses/public_timeline.json?access_token=key&count=";就这个url测试,后面的count是传的显示条数。rn我现在写法是加载更多功能可以实现,但是这样是重新加载了,条数是增加了,不过界面会跳到listView的顶部上去,而不是接着在底部显示加载更多后的。rnactivity里面代码是这样rnHandler handler = new Handler() rn public void handleMessage(Message msg) rn data = (String) msg.obj;rn adapter = new WeiBoAdapter(WeiBoActivity.this, list);rn mListView.setAdapter(adapter);rn Read.listview(data, list);rn rn ;rnrn @Overridern protected void onCreate(Bundle savedInstanceState) rn // TODO Auto-generated method stubrn super.onCreate(savedInstanceState);rn setContentView(R.layout.list_activity);rn list = new ArrayList();rn mListView = (XListView) findViewById(R.id.list);rn mListView.setPullLoadEnable(true);rn mListView.setXListViewListener(this);rn mHandler = new Handler();rn Get.doGet(url + count, handler);// xUtilsrnrn rnrn @Overridern public void onLoadMore() rn // TODO Auto-generated method stubrn mHandler.postDelayed(new Runnable() rn @Overridern public void run() rn count += 3;rn Get.doGet(url + count, handler);rn adapter.notifyDataSetChanged();rn onLoad();rn rn , 2000);rnrn rnrnrnadapter的代码rnpublic class WeiBoAdapter extends BaseAdapter rn List list;rn Context context;rn LayoutInflater inflater;rnrn WeiBoInfo info = new WeiBoInfo();rnrn public WeiBoAdapter(Context context, List list) rn this.context = context;rn this.list = list;rn inflater = LayoutInflater.from(context);rnrn rnrn @Overridern public int getCount() rn return list == null ? 0 : list.size();rn rn @Overridern public Object getItem(int arg0) rn // TODO Auto-generated method stubrn return null;rn rnrn @Overridern public long getItemId(int arg0) rn // TODO Auto-generated method stubrn return 0;rn rnrn @Overridern public View getView(int position, View view, ViewGroup arg2) rn // TODO Auto-generated method stubrn if (view == null) rn WeiBoHolder holder = new WeiBoHolder();rn view = inflater.inflate(R.layout.item_layout, null);rn holder.wbicon = (ImageView) view.findViewById(R.id.wbicon);rn holder.wbuser = (TextView) view.findViewById(R.id.wbuser);rn holder.wbtext = (TextView) view.findViewById(R.id.wbtext);rn holder.time = (TextView) view.findViewById(R.id.time);rn view.setTag(holder);rn rnrnrn WeiBoHolder holder = (WeiBoHolder) view.getTag();rn info = list.get(position);rnrn BitmapUtils bitmapUtils = new BitmapUtils(context);rn bitmapUtils.display(holder.wbicon, info.getImgUrl());rn holder.wbuser.setText(info.getUserName());rn holder.wbtext.setText(info.getText());rn holder.time.setText(info.getTime());rn return view;rn rnrnrn class WeiBoHolder rn ImageView wbicon = null;rn TextView wbtext = null;rn TextView wbuser = null;rn TextView time = null;rn rnrnjson解析的代码rnpublic class Read rn public static void listview(String data, List list) rn String icon = null;rn WeiBoInfo info = new WeiBoInfo();rn try rn JSONObject josnobject = new JSONObject(data);rn JSONArray jsonArrays = josnobject.getJSONArray("statuses");rn for (int i = 0; i < jsonArrays.length(); i++) rn info = new WeiBoInfo();rn JSONObject object = jsonArrays.getJSONObject(i);rn JSONObject user = object.getJSONObject("user");rn icon = user.optString("profile_image_url");rn info.setImgUrl(icon);rn info.setTime(object.optString("created_at"));rn info.setUserName(user.optString("name"));rn info.setText(object.optString("text"));rn list.add(info);rn rn catch (Exception e) rn e.printStackTrace();rn rnrn rn
本人刚学Qt,在信号与槽部分遇到问题,求大神解答
[code=c]#include rn#include rnusing namespace std;rnclass Foo:public QObjectrnrn Q_OBJECTrnpublic:rn Foo();rn int value() constrn rn return val;rn rn public slots:rn void setValue(int);rnsignals:rn void valueChange(int);rnprivate:rn int val;rn;rnrnFoo::Foo()rnrn val=0;rnrnrnvoid Foo::setValue(int v)rnrn if(v!=val)rn rn val=v;rn emit valueChange(v);rn rnrnrnint main(int argc, char *argv[])rnrn QCoreApplication c(argc, argv);rn Foo a,b;rn QObject::connect(&a,SIGNAL(valueChange(int)),&b,SLOT(setValue(int)));rn b.setValue(11);rn a.setValue(79);rn cout<C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): warning MSB8017: 针对项“GeneratedFiles\Debug\main.moc”执行自定义生成命令时检测到了循环依赖项。这可能会导致增量生成无法正确运行。rn1> Moc'ing main.cpp...rn1> main.cpprn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual struct QMetaObject const * __thiscall Foo::metaObject(void)const " (?metaObject@Foo@@UBEPBUQMetaObject@@XZ)rn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual void * __thiscall Foo::qt_metacast(char const *)" (?qt_metacast@Foo@@UAEPAXPBD@Z)rn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall Foo::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Foo@@UAEHW4Call@QMetaObject@@HPAPAX@Z)rn1>main.obj : error LNK2019: 无法解析的外部符号 "protected: void __thiscall Foo::valueChange(int)" (?valueChange@Foo@@IAEXH@Z),该符号在函数 "public: void __thiscall Foo::setValue(int)" (?setValue@Foo@@QAEXH@Z) 中被引用rn1>D:\QtProgram\signalAndSlot\Win32\Debug\\signalAndSlot.exe : fatal error LNK1120: 4 个无法解析的外部命令
小白刚学数据结构,有问题请教,求大神解答
请大神帮我看一下代码有什么问题,我一直找不出问题在哪里n#includen#includen#includennn#define maxsize 100;ntypedef char datetype;ntypedef structnn datetype date[maxsize];n int len;nsq;nvoid creatlist(sq *L)nn int n;n int i;n char tmp;n printf("请输入一个数字给n:");n scanf("%d", &n);n for (i = 0;i < n;i++)n n printf("date[%d]=", i);n fflush(stdin);n scanf("%c", &tmp);n L->date[i] = tmp;n n L->len = n - 1;n printf("\n");nnvoid printout(sq *L)nn int i;n for (i = 0;i <= L->len;i++)n n printf("date[%d]=", i);n printf("%c\n", L->date[i]);n nnvoid main()nn sq *L;n char cmd, x;n L = (sq *)malloc(sozeof(sq));n creatlist(L);n printout(L);n system("pause");nn
刚学python,基础问题,求大神解答
用的python3.7,刚开始学python,在学list时遇到下面两个问题,下面均使用相似的程序:rn[b]1.[/b]list求和,想问为什么当list中没有负数时,程序报错,以下是程序rn[b]a = [5, 4, 4, 3, 1][/b]rntotal = 0rni = 0rnwhile a[i] > 0:rn total += a[i]rn i += 1rnprint(total)rnrn但将列表a 改为有负数时,程序能正常运行,如下rn[b]a = [5, 4, 4, 3, 1, -1][/b]rntotal = 0rni = 0rnwhile a[i] > 0:rn total += a[i]rn i += 1rnprint(total)rnrn[b]2.[/b]还是上面的程序,加了一个条件令程序在列表a没有负数时能运行,如下rna = [5, 4, 4, 3, 1]rntotal = 0rni = 0rn[b]while i < len(a) and a[i] > 0:[/b]rn total += a[i]rn i += 1rnprint(total)rnrn但是为什么我改变条件的顺序时,程序又报错呢? 如下rna = [5, 4, 4, 3, 1]rntotal = 0rni = 0rn[b]while a[i] > 0 and i < len(a):[/b]rn total += a[i]rn i += 1rnprint(total)rnrn谢谢各位的解答!rn
刚学Java,求高手解答
从键盘输入整数,分别赋给整形变量a、b、c,然后将输入的整数按照从小到大的顺序放在变两a、b、c中,并输出三个变量的值。rnrnrn这个怎么理解?
刚学SQL不怎么懂,求解答
想问一下 SQL 中的联合查询 是什么意思 什么 内联 外联 什么的 看不太懂呀。。rn求高手讲解下,最好有个例子 叩谢!!!
刚学ibatis报的错误,求大神
nested exception is java.io.IOException: Server returned HTTP response code: 403 for URL: http://ibatis.apache.org/dtd/sql-map-config-2.dtdrnrn请问这是什么错误,急死了。。。
求大神指点,刚学C#
[img=https://img-bbs.csdn.net/upload/201610/30/1477834722_108083.png][/img]rn这个问题该怎么解决。。
求大神帮解释一下 刚学c++
#includernclass pointrn rnpublic:rn static int number;rn point()number++;rn ~point()number--;rn;rnint point::number=0;rnvoid main()rn point *ptr;rn point a,b;rn point *ptr_point=new point[3];rn ptr=ptr_point;rn rn point c;rn cout<
求各位大神。。我刚学没多久
今天做了个输入框,往文本框输入文字,单击后使文字内容加入到div中,累加的那种。。我写了如下。rnrnrn rn rn ssrn rn rn rn rn rn rn rn rn rn rnrn感觉是innerhtml这个的问题,但是不知道用什么,这样只能显示第一次输入的。。rn求解答谢谢。。
刚学jedis 求大神帮忙看看
java.lang.reflect.InvocationTargetExceptionrn 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 com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:450)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:289)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:252)rn at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)rn at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)rn at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)rn at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546)rn at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)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: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:230)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:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfigrn at com.tg.am.action.EsAction.getQueyrKey(EsAction.java:186)rn ... 69 morernCaused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfigrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn ... 70 morernrn上面是报的错误 求大神指导看看rnrn
刚学的c语言,求大神帮忙
#include"graphics.h" /*调用图形库函数*/rn#include"math.h" /*调用数学函数*/rn#include"stdio.h" /*调用标准I/O函数*/rn#define PI 3.141596 rn #include rn#define T PI/180rn#define NN 36rn#define DT PI/NNrn#define DIST 0.8rn#define R 190rnstatic int n=1;rnvoid trans(t,s)rnfloat t[3];rnfloat s[3][3];rn我调试的时候说我没有定义变量,就是现在的倒数第三行,求大神帮个忙。ps:这是一个绘图的rn多谢了,多谢了
求大神给解,刚学
编写一个脚本包括输入函数、输出函数、功能函数,功能函数的实现:根据输入的数字显示输入的数字显示月份的英文,调用三个函数实现一个叫交互式的月份查询功能[size=24px][/size]
关于多线程的疑问,求各位大神解答
nn```using namespace std;nnDWORD WINAPI Thread_accept (PVOID lParam)nn cout<<"进入线程"<
关于多线程的问题...求大神解答!!
最近写了个程序rn把网站的日志(IIS日志)入库.然后通过录入Url地址的方式去分析Url的访问情况.rn表结构如下rn日志表rnUrl表rn程序一天运行一次,每次获取Url表中的全部数据.进行循环.rn前期Url地址不多(小于3000条),现在随着Url的增加.rn循环次数增加,程序运行得也越来越慢.rn有没有什么办法优化一下?rnrn我自己也想了一下.rn能否用多线程实现.增加一个配置.可以开启多个线程.比如开启的是5个线程.rnrnfor(int i=0;i<5;i++)rnrn //在循环里去逐一开启线程,调用函数rnrn如果Url表存在1万条数据.现在是5个线程.rn等于是把1万条数据分成5份.每份2000条.rn第一个线程分析前面2000条,依次类推.rn但是rnThreadStart startDownload = new ThreadStart( DownLoad ); rn //线程起始设置:即每个线程都执行DownLoad(),注意:DownLoad()必须为不带有参数的方法rn线程里调用的函数不能带参数怎么办.rnrn求大神指点一下,这种方法到底是否可行..rn如果不行 有什么别的好办法啊?rnrn
java多线程问题,求大神解答
有一个学生对象,包含学号、姓名、班级属性rn生成10个学生对象后放入集合中rn运用多线程读取集合中学生对象后将学生信息写入到同一文件(按学生学号排序)rnrn本人多线程实在不会,求大神解答。(不实现排序的也行)主要是能有多线程方面的代码提供下参考
Java 多线程问题 求各位大神解答
[code=java]public class dddd extends Threadrnrn static int i=100;rn public synchronized void run()rn rnrn System.out.println(Thread.currentThread().getName()+" "+i);rn i--;rn rn public static void main(String[] args)rn rn int i=100;rn dddd h=new dddd();rn Thread a=new Thread(h);rn Thread b=new Thread(h);rn Thread c=new Thread(h);rn Thread d=new Thread(h);rn Thread e=new Thread(h);rn while(dddd.i)rn rn a.start();rn b.start();rn c.start();rn d.start();rn e.start();rn rn rn[/code]rn我想建立5个线程 然后有一个计数器 当计数器的数i<1时停止进程 rn为什么while循环内只执行一次后就开始报错 rn
刚学单片机,大神,帮帮忙
用C语言编写家用温湿度监控器rn —温湿度传感器SHT10的应用rnSHT10电路图[img=http://img.my.csdn.net/uploads/201212/28/1356694021_1035.jpg][/img]rn单片机管脚图[img=http://img.my.csdn.net/uploads/201212/28/1356694054_7980.jpg][/img]
大神帮忙,刚学C#
using System;rnusing System.Collections.Generic;rnusing System.Text;rnusing System.Reflection;rnnamespace ch1226FanShernrn class Programrn rn public static void Main(string[] args)rn rn string testclass = "System.Refection.ProperInfo";rn Console.WriteLine("\nFollowing is the member info for class: 0",rn testclass);rn Type MyType = Type.GetType(testclass);//存储类型的类型rn //MemberInfo [] Mymemberinforra = MyType.GetMembers();//获取类型包含的成员rn MemberInfo[] Mymemberinforray = MyType.GetMembers();rn Console.WriteLine("\nThere are 0 members in 1",rn Mymemberinforray.GetLength(0),rn MyType.FullName);rn for (int counter = 0; counter < Mymemberinforray.GetLength(0); counter++)rn rn Console.WriteLine("0--1 Member type --2",rn counter, Mymemberinforray[counter].Name,rn Mymemberinforray[counter].MemberType.ToString());rn rn rn rnrn会报错误:rn 未处理的异常: System.NullReferenceException: 未将对象引用设置到对象的实例。rn 在 ch1226FanShe.Program.Main(String[] args) 位置 E:\C#\ch1226FanShe\ch1226FanrnShe\Program.cs:行号 16rn怎么修改……
菜鸟刚学,大神求解。。。。
package cn.study.wrapperClass;nnimport java.util.Arrays;nnpublic class TestWrapper n public static void main(String[] args) n n String a = "34 9 -7 67 25";n String [] b = a.split(" ");n Arrays.sort(b);n System.out.println(Arrays.toString(b));n n nn为什么9没排序呢
求大神解答,谢谢
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求解答求解答求解答求解答求解答求解答
相关热词 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图 c# 验证码图片生成类 c# 再次尝试 连接失败 c#开发编写规范 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数