调用方使用try-catch捕获异常时为何被调用方法还需throws异常?

有个问题想不明白,throws是为了可以使被调用方法的异常向上抛,上层调用必须要有try-catch语句捕获throws异常,那么问题来了,假如我上层调用中有写try-catch捕获异常,我为啥还需要在被调用方法声明中加throws?不是反正都会被捕获吗,加不加throws就无所谓了。

追问:为什么代码1中ThrowsTest类没有throws ArithmeticException不会报错,代码2中没有throws MyException就编译不过了呢?

//代码1
package trycatch;

public class ThrowsTest {
    public static void main(String args[]) {
        int num1 = 25;
        int num2 = 0;
        int result;
        if(num2 == 0) {
            throw new ArithmeticException("这都不会!");
        }
        result = num1/num2;
        System.out.println("结束了" + result);
    }
}

//代码2
package trycatch;


public class TryCatch {

public static void main(String args[]) {
    int i = 1;
    if(i == 1) {
        throw new MyException("出错了!");
    }   
 }

}

class MyException extends Exception {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    public MyException(String message) {
        super(message);
    }
}

2个回答

首先你要抛异常(指明异常),上级方法才能抓,否则会报错而不是报异常

qq_43345230
DariusEle 回复weiwei_baby: 如果有帮助的话可以给个采纳不
4 个月之前 回复
weiwei_baby
weiwei_baby 回复DariusEle: 懂了,感谢!
4 个月之前 回复
qq_43345230
DariusEle 回复weiwei_baby: 不是上级方法报错 而是代码执行到这里发现有异常但是没抓抛异常就会报错
4 个月之前 回复
weiwei_baby
weiwei_baby 被调用方法不抛异常,上层调用时直接try-catch也不会报错吧?
4 个月之前 回复

问题是,你的方法怎么知道谁调他,怎么知道调他的方法有没有try。当然,根本问题是,你的方法中可能会存在异常,那么你就得对异常进行处理,无论是抛还是抓,都是处理异常的一种方式,调用者是否处理异常和怎么处理异常,与这个方法对异常的处理并没有啥联系

espen_tian
光影星魂 回复weiwei_baby: throws只能用在方法声明时,如果有throws,那么调用方是必须处理的,这是在编译器就要处理的,还是那句话,或抓或抛,但是都得有个处理
4 个月之前 回复
weiwei_baby
weiwei_baby 明白了,感谢!我之前说的throws异常是指方法声明的时候,不是说运行的时候,我的意思是如果方法声明了throws异常,运行的时候别人调用他,他当时也是正常运行的,只不过调用方没写try-catch,其实这样也是没问题的,程序不会报错。
4 个月之前 回复
espen_tian
光影星魂 回复光影星魂: b中throws了一个异常,然后你在A中要进行处理,或抓或抛,当你在A中throws了以后,在另一个方法C中调用了A,这个情况不就跟A调用B一样了吗
4 个月之前 回复
espen_tian
光影星魂 回复weiwei_baby: 你能这么想,说明你对异常这基本已经理解了,只不过没转过弯。你写了个A方法,调用了api中的一个方法B,
4 个月之前 回复
espen_tian
光影星魂 回复weiwei_baby: throws就是说我这个方法可能有异常,但是我没有处理,就是把问题扔出去了,至于你调用者要怎么处理,是抓是抛。。。
4 个月之前 回复
weiwei_baby
weiwei_baby 那可不可以这么理解,其实加throws的作用是告诉调用方本方法可能会出现这些异常,希望调用方进行处理,如果不catch的话其实也不影响?还是说被调用方法throws了异常那调用者必须catch该异常,否则会报错?
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Facebook \ WebDriver \ Exception \ ElementNotVisibleException:元素不可交互

<div class="post-text" itemprop="text"> <p>I have to test using dusk and I have this tag for 3 times</p> <pre><code>&lt;div class="form-group"&gt; &lt;input type="email" name="email[]" class="form-control" placeholder="Enter teammate's email"&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;input type="email" name="email[]" class="form-control" placeholder="Enter teammate's email"&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;input type="email" name="email[]" class="form-control" placeholder="Enter teammate's email"&gt; &lt;/div&gt; </code></pre> <p>and I tried these to run it</p> <pre><code>-&gt;type('input[name=email[]]', $userEmail)-&gt;type('email[]', $userEmail)-&gt;type('input[type=email]', $userEmail) </code></pre> <p>but not working what is the correct one to type the email ??</p> </div>

vc调用matlab生成的com组件返回值不成功

大虾们好,谁能帮帮我。我在设置好vc和matlab环境之后,先通过简单的程序进行了测试,可以实现调用,eg:function z=add(x+y),不论输入参数是数组还是标量都能成功。但是在将复杂的matlab程序做成com组件之后,用vc调用。得不到正确的结果。下面我将贴出简单的程序和复杂的多输入程序给大虾们帮我分析。 function z=add(x+y) ‘inline code’ HRESULT hr; hr=CoCreateInstance(CLSID_add1,NULL,CLSCTX_ALL,IID_Iadd1,(void **)&p_Test); if(FAILED(hr)) { AfxMessageBox("failed"); return; } VARIANT x,y,z; SAFEARRAYBOUND xBound[1],yBound[1]; SAFEARRAY *xArrayPr,*yArrayPr,*zArrayPr; double HUGEP *xdata,*ydata,*zdata; xBound[0].cElements=3,xBound[0].lLbound=0; xArrayPr=SafeArrayCreate(VT_R8,1,xBound); yBound[0].cElements=3,yBound[0].lLbound=0; yArrayPr=SafeArrayCreate(VT_R8,1,yBound); HRESULT hr1,hr2; hr1=SafeArrayAccessData(xArrayPr,(void HUGEP**)&xdata); hr2=SafeArrayAccessData(yArrayPr,(void HUGEP**)&ydata); for(int i=0;i<3;i++) { xdata[i]=(double)i;ydata[i]=(double)i+10; } SafeArrayUnaccessData(xArrayPr); SafeArrayUnaccessData(yArrayPr); VariantInit(&x); x.vt=VT_R8|VT_ARRAY; x.parray=xArrayPr; VariantInit(&y); y.vt=VT_R8|VT_ARRAY; y.parray=yArrayPr; hr=p_Test->add(1,&z,x,y); LONG zBoundL,zBoundU; zArrayPr=z.parray; SafeArrayGetLBound(zArrayPr,2,&zBoundL); SafeArrayGetUBound(zArrayPr,2,&zBoundU); double z0[3]; HRESULT hr3=SafeArrayAccessData(zArrayPr,(void** HUGEP)&zdata); for(int t=0;t<3;t++) { z0[t]=zdata[t]; } m_1=z0[0]; m_2=z0[1]; m_3=z0[2]; UpdateData(false); SafeArrayUnaccessData(zArrayPr); SafeArrayDestroy(xArrayPr); SafeArrayDestroy(yArrayPr); SafeArrayDestroy(zArrayPr); 对这个com组件的调用能够成功。 下面是对我项目中的程序进行调用,我失败了,希望有人能够帮帮我。 ‘inline code’ 考虑到大侠们的感受,我这里只贴出部分参数的设定, HRESULT hr; hr=CoCreateInstance(CLSID_test01,NULL,CLSCTX_ALL,IID_Itest01,(void **)&m_pTest); if(FAILED(hr)) { AfxMessageBox("failed"); return; } VARIANT GST,GSTm,Heat,Heatm,Up_thR,Up_thRm,Up_elec,Up_elecm,Down_elec,Down_elecm,Precision,Fmin,Write01,R; SAFEARRAYBOUND GSTBound[1],GSTmBound[1],HeatBound[1],HeatmBound[1],Up_thRBound[1],Up_thRmBound[1],Up_elecBound[1],Up_elecmBound[1];Down_elecBound[1],Down_elecmBound[1],PrecisionBound[1]; SAFEARRAY *GSTArrayPr,*GSTmArrayPr,*HeatArrayPr,*HeatmArrayPr,*Up_thRArrayPr,*Up_thRmArrayPr; SAFEARRAY *Up_elecArrayPr,*Up_elecmArrayPr,*Down_elecArrayPr,*Down_elecmArrayPr,*PrecisionArrayPr; double HUGEP *GSTdata; double gst[3]={300,300,120}; GSTBound[0].cElements=3,GSTBound[0].lLbound=0; GSTArrayPr=SafeArrayCreate(VT_R8,1,GSTBound); HRESULT hr1; hr1=SafeArrayAccessData(GSTArrayPr,(void HUGEP**)&GSTdata); for(int i0=0;i0<3;i0++) { GSTdata[i0]=gst[i0]; } SafeArrayUnaccessData(GSTArrayPr); VariantInit(&GST); GST.vt=VT_R8|VT_ARRAY; GST.parray=GSTArrayPr; VARIANT addrin,addout; addrin.vt=VT_BSTR; addrin.bstrVal=_com_util::ConvertStringToBSTR("'D:\\MATLAB6.5\\work3\\pulse_rst.txt'"); addout.vt=VT_BSTR; addout.bstrVal=_com_util::ConvertStringToBSTR("'D:\\MATLAB6.5\\work3'"); hr=m_pTest->elec_mini3(1,&R,GST,GSTm,Heat,Heatm,Up_elec,Up_elecm,Down_elec,Down_elecm,Up_thR,Up_thRm,Precision,Fmin,Write01,addrin,addout); m_R=R.dblVal; UpdateData(false); 运行结果得到的没有初始化的R.dblVal=-9.255……;调试的时候出现了User breakpoint called from code at 0X7C9120e的错误。 在下很急,希望有人看到这个后能帮帮我。

winform程序的Application.Run()抛出异常:“未将对象引用设置到对象的实例“?

##winform程序的Application.Run()抛出异常:“未将对象引用设置到对象的实例“ ![图片说明](https://img-ask.csdn.net/upload/201912/05/1575519266_161353.png) ###下面是调试时感觉出问题的地方: ``` //触发事件 private void MC_Code_SelectedIndexChanged(object sender, EventArgs e) { label8.Text = MC_Code.Text; if (MC_Code.Text == null) return; mc_code = MC_Code.Text; Dept_Code = dept_code.Text; try { Thread thr = new Thread(loadDataGridView); thr.Start(); } catch { } } string mc_code = ""; string Dept_Code = ""; ***#感觉出问题的函数#*** void loadDataGridView() { DataTable table = new DataTable(); //BindingSource bs = new BindingSource(); while (true) { table = getData(mc_code, Dept_Code, Login.Site); if (table == null) return; //BindingSource bs = new BindingSource(); //bs.DataSource = table; //bs.DataMember = "Data"; try { //第一次在下拉列表中选择一个值代码运行到此处,不会出现任何问题;但是当在下拉列表中重新选择值第二次运行到此处时,就会跳转到Application.Run()这个地方抛出异常:“未将对象引用设置到对象的实例“ #this.dataGridView1.DataSource = table;# //this.dataGridView1.DataBindings.Add("Text",bs,""); } catch { return; } Thread.Sleep(60000); } } **不知道具体是什么问题,求大神解决!** ```

调用DOMPDF库的render方法时超时

<div class="post-text" itemprop="text"> <p>PDF with few pages it works perfectly but when I try to generate a PDF file with more than 20 pages, it presents this error in the browser</p> <p><a href="https://i.stack.imgur.com/HhqE9.png" rel="nofollow noreferrer">ERR_CONECTION_RESET</a></p> <p>This is my code to generate pdf:</p> <pre><code>$html = ' &lt;style&gt; * { font-family: Tahoma, Verdana, Segoe, sans-serif; color: #333333; font-size: 9px;} &lt;/style&gt; &lt;table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#333333"&gt; &lt;tr&gt; &lt;td height="70" bgcolor="#ffffff" colspan="7" align="center" valign="middle"&gt;&lt;b style="font-size: 18px;"&gt;RELATÓRIO DE FECHAMENTO - Nº '.$id.'&lt;/b&gt;&lt;br&gt;&lt;b&gt;Data do pagamento: '.date('d/m/Y', strtotime($objDados[$idx]-&gt;dtpagamento)).'&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#ffffff" align="center" width="130"&gt;&lt;img src="data:image/gif;base64,R0lGODlhhQAwAPcAAAAAAP////7+//r7/e7y+Pb4+wZElD5urEp3sU56s1qDuGqPv3aYxHqbxoOiyoaky4qnzZKt0Jaw0p621aa82a7C3LLF3rbI4MLR5cvY6dLd7Nrj7+ft9erv9gBAkQFBkQJBkgdFlAhGlApHlQtIlgxJlg1Klw9LlxBMmBZQmhhSmxtUnRxVnR9XniBYnyFZnyNaoCRboSddoipfoytgpCxhpC9jpTBkpjFlpjVoqDdpqThqqTprqjtsqj9vrEBwrUJxrUNyrkV0r0RzrkZ0r0d1sE97s1F9tFJ9tFWAtlaAtleBt1iCt1mDt1yFuWCIumKJu2WMvWuQv2yRwG6SwHOWw3KVwnSXw3mbxXucxn+fyH6ex4SjyoWkyoimzIely4ypzY+rz46qzpGt0JOu0JSv0Ziy05mz05qz05u01J221Zy11KC41qG51qS72KO616e92ai+2aq/2q3C3LDE3bHF3bXI37fJ4LnL4bzN4sHR5MXU5sfV58bU5snX6MjW59Dc68/b6tTf7Nnj79ji7uDo8uPq8+Lp8uvw9s3a6d3m8OXs9Onv9uju9e3y9/T3+vj6/Pv8/f7+/v39/fz8/Pv7+/r6+vn5+fj4+Pf39/X19fPz8/Ly8vHx8fDw8O/v7+7u7u3t7ezs7Ovr6+rq6unp6efn5+bm5uXl5eTk5OPj4+Li4uHh4eDg4N/f397e3t3d3dra2tnZ2djY2NfX19bW1tXV1dPT09LS0tHR0dDQ0M/Pz83NzczMzMvLy8rKysnJycjIyMbGxsXFxcTExMPDw8LCwsHBwcDAwL+/v76+vry8vLq6uri4uLe3t7a2trW1tbS0tLOzs7KysrGxsbCwsK+vr66urqurq6qqqqmpqaioqKenp6WlpaOjo6Kiop+fn56enp2dnZycnJqampmZmZeXl5aWlpSUlJGRkZCQkI+Pj46Ojo2NjYyMjIuLi4qKiomJiYiIiIeHh4aGhoWFhYSEhIODg4GBgYCAgH9/f35+fn19ff///wAAAAAAACH5BAEAAP0ALAAAAACFADAAAAj/AAMIHEiwoMGDCBMqXMiwocOHECNKnEixosWLGDNq3Mixo8ePIEOKHEmypMmTKFOqXMmypcuXMGPKnEmzps2bOHPq3DlQGDduwngqFPTECJRBCz+hOsW0qdNTqDpx5EeV30YBgRJp3cp166ONWjyIhbBwXtWzaPm9k7SxHdV2G++InUu37pWNYuaaWZi2L1VLG9lRZbexTN3Dc41sDDP3zMJ0ftGeY6tRMD/CGvWAQHzYweLGCy1xGs0JWtVnpDlV4mgZs0YOi2IvcjE3j+xFHBmL3fvwWFVjBS+tajWqYKVUrUoR7NQqlUBSxoqJEmj5nUBYxY7pwpTQUy5jyITF/6KkUMZc3AYZUXjAxUwghX3KfCHjh6BuD24CNErDZcz7hMtUtUxB0VRlCkHJVOXKQO5QFYoqVYVDHVXjjALOWfTgYhAn26QVDzIJxTCXBgZJYUBdQyhi0B021KUDIALp9gEdboRAFxQAClgQNlWxQpAzVdEykFn8aJNPVeJMyE88+/S14ECi3BPZNgiJKBaJA0VyA2ciGEJQHJz9EKNYIKSAmBUIBUjVgARVU5UqBKnJTywDudXkWeYoWZU55JxlnUCTwFNVPM4sM85ZvBxkpQdYCvTEXEzgkccCc4kpEAd0vRAFEyJ4UMOYdIVAQ11p6tjmm3FWRadAblXlTCivtP+iJz+1CHTLWbIGAExV6AAm0DNVwWXQoo1uMBcRBDkxFyECUTFXEQN1IEQToIqVQCMBaICCWCKUumZBblIF50ByrhpAq/xMY5Bl+MBCUDe/CVROVasUJE9VoAw74kBfzOXlQIWAJoCZHnyACEL3IUDQFmKZ4C0/bA4ULj/jClRunVTNc5Bl6xTES1XVBHDJkfxoXBA3Vdmi75UDJTEXGGqssYYaWczVRQCKzJVDQvfNQRAcDT8csUATVxzAxaxS1fG6gxU0S1XcBBBKVecYBCxVvqzM6EA9cEYXAwHwMZcSPM+FBkFvBH2QnEMHMLFz5KqKMT/CFtRaQbJUReUoexr/1ExVvWjd6A5zbUbXBx+MYEEAGMy1RNliOTZQG2obxHZB1hhI0DByJ033xlSlU1AuVUkTgCdV/UlQNlXNIvhAQMzlx22yESBQBnMdALkHkgtEuQcOr22qxFW5O9A3nZ/7Fuj81KMJQTxSRUwAk9BTlScFvVPVJq8LFMVc/yHUwVwhQIIwaJNXXtDlBDGD5EDXnGVuq3UTZNllUgXAylmoCIQyVdogCDGopqh9CSRtYvGBQQRwMIFsSSw4GsgToBWA+/QuAL8LnuWGJ5C8Ue0a96PK/JbHtKrg4xlXo4o6BrK/qnhjF7mIX/IIQqyBFIAEcwmCHP7Qhzk0gAU4GAgC/8VyAC5gAQYeWEG1LphBhLiPKswoiCQalBZ0aI8fshjIFVVHkAbtQx1+gZtAChQZaCCkBeAjyAW85gEUEIQHnJmBQMAwFwkQZAJiKQFCgESVZhgEFII6izMkUZUsCoRk+TiIPqgCC9KdJR+5MIgyFokWexQjIScw4EDq8ALONIAgAjjCYVRgB4H0SywRIEga5oIQTvziGL/gxEEqQQxscOMZPgrALYzhi0sMBDvFMB7ejBEMwJiiGdvIBjJkeZBNBIMaP5FGLzIBHzB4oQKROMgcqtAEJCjACmw4xEH20AAFKGEKbhjAQBohgQecoYECcQQaunBBodjznvjMpz73yRnPfvrznwANqEAHStCCGvSgCE2oQhf6z4AAADs=" border="0"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="30" bgcolor="#ffffff" colspan="8" align="center" valign="middle" colspan="2"&gt;&lt;b style="font-size: 16px;"&gt;DETALHADO&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr style="color: #ffffff !important;"&gt; &lt;td bgcolor="#1369a1" width="45" height="20"&gt;&lt;b&gt;DATA&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1"&gt;&lt;b&gt;TIPO&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1" width="30"&gt;&lt;b&gt;CHAPA&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1" width="150"&gt;&lt;b&gt;NOME&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1"&gt;&lt;b&gt;BANCO&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1" width="45"&gt;&lt;b&gt;AGENCIA&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1" width="45"&gt;&lt;b&gt;CONTA&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1"&gt;&lt;b&gt;VALOR em R$&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; '.$lista_individual.' &lt;/table&gt; &lt;br&gt; &lt;br&gt; &lt;table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#333333"&gt; &lt;tr&gt; &lt;td bgcolor="#ffffff" height="30" colspan="3" align="center"&gt;&lt;b style="font-size: 16px;"&gt;SUBTOTAL&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr style="color: #ffffff !important;"&gt; &lt;td bgcolor="#1369a1" width="45" height="20"&gt;&lt;b&gt;CHAPA&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1"&gt;&lt;b&gt;NOME&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#1369a1" width="130"&gt;&lt;b&gt;SUBTOTAL em R$&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; '.$lista_subtotal.' &lt;tr&gt; &lt;td bgcolor="#c8e5f7" colspan="2" align="center" height="20"&gt;&lt;b style="font-size: 16px;"&gt;TOTAL&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#c8e5f7" width="130"&gt;&lt;b&gt;'.number_format($lista_total,2,',','.').'&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;br&gt; &lt;br&gt; &lt;table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#333333"&gt; &lt;tr&gt; &lt;td bgcolor="#1369a1" width="50%" height="20" align="center" style="color: white; font-size: 12px;"&gt;TOTAL BANCO SANTANDER - 033&lt;/td&gt; &lt;td bgcolor="#1369a1" width="50%" align="center" style="color: white; font-size: 12px;"&gt;TOTAL OUTROS BANCOS&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td bgcolor="#ffffff" height="20" align="center" &gt;&lt;b&gt;'.number_format($tot_santander, 2 , ',', '.').'&lt;/b&gt;&lt;/td&gt; &lt;td bgcolor="#ffffff" align="center"&gt;&lt;b&gt;'.number_format($tot_qualquerbanco, 2 , ',', '.').'&lt;/b&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; '; $dompdf-&gt;load_html(utf8_encode($html)); $dompdf-&gt;render(); $dompdf-&gt;stream( "saida.pdf", array( "Attachment" =&gt; false ) ); </code></pre> <p>Is there a way to optimize time? PDF with few pages works normally but in PDF with many pages DOMPDF returns this error in the browser...</p> <p>I'm trying to search for a solution all over the internet, but none worked. I tried to increase <code>set_time_limit</code> but it did not work either.</p> </div>

simulink 运行时报错:Assignment of complex data to noncomplex data

我用了MATLAB function 模块来实现小波降噪,下面是程序: function y = fcn(u) %#codegen coder.extrinsic('wavedec'); coder.extrinsic('wnoisest'); coder.extrinsic('ddencmp'); coder.extrinsic('wdencmp'); y=0; xiaobo=0; thr=0.0000;thrs=0; x=u; %使用db24小波,做8层分解 wname='bior2.6';lev=8; [c,l]=wavedec(x,lev,wname); sigma=wnoisest(c,l,1); alpha=2; [thr,sorh,keepapp]=ddencmp('den','wp',x); thrs=thr+1; xiaobo=wdencmp('gbl',c,l,wname,lev,thrs,'s',1); y = xiaobo; 不知道为什么就会一直在报这个错,workspace显示thr=6.5700啊 这是复杂数么? 求教各位大神!!!!! --------------------------------------------------------------------------------------------- 我试了试把小波包的‘wp’改成小波的wv就好了,但是有人知道为什么么。 还有一点,我用fromfile输入一个二维的信号,第一行是时间,第二行是幅值,输进我设计的MATLAB FUNCTION 这个方法行得通么

why only catch the first Exception of f(0)

// exceptions/Ex9.java // TIJ4 Chapter Exceptions, Exercise 9, page 460 /* Create three new types of exceptions. Write a class with a method that * throws all three. In main(), call the method but only use a single catch * clause that will catch all three types of exceptions. */ //import static net.mindview.util.Print.*; class ExceptionA extends Exception { ExceptionA(String msg) { super(msg); } } class ExceptionB extends Exception { ExceptionB(String msg) { super(msg); } } class ExceptionC extends Exception { ExceptionC(String msg) { super(msg); } } public class Ex9 { public static void f(int x) throws ExceptionA, ExceptionB, ExceptionC { if(x < 0) throw new ExceptionA("x < 0"); if(x == 0) throw new ExceptionB("x == 0"); if(x > 0) throw new ExceptionC("x > 0"); } public static void main(String[] args) { try { f(0); f(1); f(-1); // will catch any Exception type: } catch(Exception e) { System.out.println("Caught Exception"); e.printStackTrace(System.out); } } }

proftpd+mysql 安装报异常求助

mysql 通过rpm安装 MySQL-client-5.5.37-1.linux2.6.x86_64.rpm MySQL-devel-5.5.46-1.linux2.6.x86_64.rpm MySQL-server-5.5.37-1.linux2.6.x86_64.rpm 安装proftpd时在make时包异常 配置为./configure --with-modules=mod_sql:mod_sql_mysql:mod_quotatab:mod_quotatab_sql --with-includes=/usr/include/mysql --with-libraries=/usr/lib64/mysql make 异常为 /usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function `my_thread_init': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:324: undefined reference to `pthread_getspecific' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:342: undefined reference to `pthread_setspecific' /usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function `my_thread_global_reinit': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:115: undefined reference to `pthread_getspecific' /usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function `my_thread_global_init': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:154: undefined reference to `pthread_mutexattr_init' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:155: undefined reference to `pthread_mutexattr_settype' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:163: undefined reference to `pthread_mutexattr_init' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:164: undefined reference to `pthread_mutexattr_settype' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:168: undefined reference to `pthread_key_create' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:205: undefined reference to `pthread_create' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:207: undefined reference to `pthread_join' /usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function `my_thread_global_end': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:261: undefined reference to `pthread_key_delete' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:263: undefined reference to `pthread_mutexattr_destroy' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:266: undefined reference to `pthread_mutexattr_destroy' /usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function `my_thread_end': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:380: undefined reference to `pthread_getspecific' /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:427: undefined reference to `pthread_setspecific' /usr/lib64/mysql//libmysqlclient.a(my_thr_init.c.o): In function `_my_thread_var': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/my_thr_init.c:432: undefined reference to `pthread_getspecific' /usr/lib64/mysql//libmysqlclient.a(thr_mutex.c.o): In function `my_pthread_fastmutex_lock': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/thr_mutex.c:481: undefined reference to `pthread_mutex_trylock' /usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function `get_charset_name': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:533: undefined reference to `pthread_once' /usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function `get_charset_number': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:522: undefined reference to `pthread_once' /usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function `get_charset_by_csname': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:644: undefined reference to `pthread_once' /usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function `get_charset': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:597: undefined reference to `pthread_once' /usr/lib64/mysql//libmysqlclient.a(charset.c.o): In function `get_collation_number': /pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:484: undefined reference to `pthread_once' /usr/lib64/mysql//libmysqlclient.a(charset.c.o):/pb2/build/sb_0-16513225-1442594820.66/rpm/BUILD/mysql-5.5.46/mysql-5.5.46/mysys/charset.c:619: more undefined references to `pthread_once' follow collect2: ld returned 1 exit status make: *** [proftpd] Error 1

致命错误:未捕获错误:在第27行的C:\ cont_search.php中调用boolean上的成员函数execute()

<div class="post-text" itemprop="text"> <p>How to search from two table and query execute and bind to form json array to pass</p> <p>cont_search.php</p> <pre><code> &lt;?php include "connection.php"; $keyword=$_GET["context"]; //Checking if any error occured while connecting if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); die(); } $query =$conn-&gt;prepare("(SELECT isbn, title, authors, accession, publisher, pubyear, pages, keywords, subheadings, booknote, rak, hr, vr, status, 'book' as type FROM books WHERE title LIKE '%".$keyword."%' OR authors LIKE '%".$keyword."%' OR publisher LIKE '%".$keyword."%' OR pubyear LIKE '%".$keyword."%' OR keywords LIKE '%".$keyword."%' OR subheadings LIKE '%".$keyword."%' OR booknote LIKE '%".$keyword."%') UNION ALL (SELECT t_acc, t_title, t_author, t_university, t_puby, t_keywords, t_rak, t_hr, t_vr, t_status, 'thesis' as type FROM thesis WHERE t_title LIKE '%".$keyword."%' OR t_author LIKE '%".$keyword."%' OR t_university LIKE '%".$keyword."%' OR t_puby LIKE '%".$keyword."%' OR t_keywords LIKE '%".$keyword."%')"); echo "Error: " . $query . "&lt;br&gt;" . $conn-&gt;error; $query-&gt;execute(); $query-&gt;bind_result($isbn, $title, $authors, $accession, $publisher, $pubyear, $pages, $key, $sub, $bkn, $rak, $hr, $vr, $status, $tacc, $ttile, $tauthor, $tuni, $tpuby, $tkey, $trak, $thr, $tvr, $tstatus); $books = array(); $data =array(); //traversing through all the result while($query-&gt;fetch()){ $temp = array(); $temp['isbn'] = $isbn; $temp['title'] = $title; $temp['authors'] = $authors; $temp['accession'] = $accession; $temp['publisher'] = $publisher; $temp['pubyear'] = $pubyear; $temp['pages'] = $pages; $temp['keywords'] = $key; $temp['subheadings'] = $sub; $temp['booknote'] = $bkn; $temp['rak'] = $rak; $temp['hr'] = $hr; $temp['vr'] = $vr; $temp['status'] = $status; $temp['t_acc'] = $tacc; $temp['t_title'] = $ttile; $temp['t_author'] = $tauthor; $temp['t_university'] = $tuni; $temp['t_puby'] = $tpuby; $temp['t_keywords'] = $tkey; $temp['t_rak'] = $trak; $temp['t_hr'] = $thr; $temp['t_vr'] = $tvr; $temp['t_status'] = $tstatus; array_push($data, $temp); } $books['ss'] = true; //ss=send status $books['search'] = $data; //displaying the result in json format header('Access-Control-Allow-Origin: *'); header('Content-type:application/json;charset=utf-8'); echo json_encode($books); ?&gt; </code></pre> <blockquote> <p><a href="http://localhost/cont_search.php?context=english" rel="nofollow noreferrer">http://localhost/cont_search.php?context=english</a></p> <p>I execute/run above query and error occur</p> <p>Error: The used SELECT statements have a different number of columns</p> <p>Fatal error: Uncaught Error: Call to a member function execute() on boolean in C:\cont_search.php</p> </blockquote> </div>

springboot hibernate整合问题

在一个service方法中调用sessionFactory.getCurrentSession()的时候报如下异常Could not obtain transaction-synchronized Session for current thread 网上查询报错原因是说必须加@Transactional(readOnly = true),按说明加确实是可以解决。但是这个service方法仅仅是一个查询,不想用事务方式,能否在不写@Transactional(readOnly = true)情况下正常获取session,并进行查询。不想为每个查询service都加@Transactional(readOnly = true), 也不想用openSession方式。 非常感谢,如解决追加分数

Eclipse中调用javax.swing的问题

import javax.swing.JOptionPane; public class Displayunicode { } 如上,javax.swing.JOptionPane;会显示红色波浪线,报错提示为 Access restriction: The type JOptionPane is not accessible due to restriction on required library E:\Program Files\Java\jre8\lib\rt.jar Displayunicode.java /practise/src/practise line 2 Java Problem 但什么环境变量都配置对了啊,IDE是Eclipse最新版本的啊,java版本也是最新的,求解这是为什么啊?

JavaScript上的ajax中请求的资源上没有“Access-Control-Allow-Origin”标头[duplicate]

<div class="post-text" itemprop="text"> <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/15005500/loading-cross-domain-endpoint-with-jquery-ajax" dir="ltr">Loading cross-domain endpoint with jQuery AJAX</a> <span class="question-originals-answer-count"> 9 answers </span> </li> <li> <a href="/questions/14681292/same-origin-policy-and-cors-cross-origin-resource-sharing" dir="ltr">Same origin Policy and CORS (Cross-origin resource sharing)</a> <span class="question-originals-answer-count"> 2 answers </span> </li> <li> <a href="/questions/20035101/why-does-my-javascript-code-get-a-no-access-control-allow-origin-header-is-pr" dir="ltr">Why does my JavaScript code get a “No 'Access-Control-Allow-Origin' header is present on the requested resource” error when Postman does not?</a> <span class="question-originals-answer-count"> 44 answers </span> </li> </ul> </div> <p>I am currently working on a <code>spring project</code>, and I am designating <code>uri</code> using a page controller. We need to use <code>uri short API</code> now. There is a problem. The way that we're doing it is <code>PHP</code>. But I have to use the code in <code>JavaScript</code>. </p> <p>I tried this code.</p> <pre class="lang-js prettyprint-override"><code> data = {}; data.key = "ehelkhej45jjb38h6f5234234hg"; data.short = "www.google.com"; data.name = "googleuri" $.ajax({ url : "https://cutt.ly/api/api.php", type : "POST", dataType : "json", beforeSend : function(xhr){ xhr.setRequestHeader("Access-Control-Allow-Origin", "*"); xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded"); }, data : data, success : function(result) { console.log(result); } }); </code></pre> <p>This has caused me an error.</p> <blockquote> <p>Access to XMLHttpRequest at '<a href="https://cutt.ly/api/api.php" rel="nofollow noreferrer">https://cutt.ly/api/api.php</a>' from origin '<a href="http://localhost:11000" rel="nofollow noreferrer">http://localhost:11000</a>' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. jquery-1.9.1.js:8526 POST <a href="https://cutt.ly/api/api.php" rel="nofollow noreferrer">https://cutt.ly/api/api.php</a> net::ERR_FAILED</p> </blockquote> <p>I could tried <code>Postman</code></p> <p><a href="https://i.stack.imgur.com/98F9o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/98F9o.png" alt="postman"></a></p> <p>When I first called this, the <code>body</code> was empty and <code>status : 500Internal Server Error</code>. But when I call again, I get a <code>response</code> like a picture.</p> <p>And I could tried <code>GET</code> and <code>jsonp</code> but it was Blocked</p> <pre class="lang-js prettyprint-override"><code> $.ajax({ url : "https://cutt.ly/api/api.php", type : "GET", dataType : "jsonp", data : data, success : function(result) { console.log(result); } }); </code></pre> <p><strong>Block ERROR</strong></p> <blockquote> <p>jquery-1.9.1.js:8336 Cross-Origin Read Blocking (CORB) blocked cross-origin response <a href="https://cutt.ly/api/api.php?callback=jQuery191049576531804679713_1565245716711&amp;key=ehelkhej45jjb38h6f5234234hg&amp;short=www.google.com&amp;name=googleuri&amp;_=1565245716712" rel="nofollow noreferrer">https://cutt.ly/api/api.php?callback=jQuery191049576531804679713_1565245716711&amp;key=ehelkhej45jjb38h6f5234234hg&amp;short=www.google.com&amp;name=googleuri&amp;_=1565245716712</a> with MIME type text/html. See <a href="https://www.chromestatus.com/feature/5629709824032768" rel="nofollow noreferrer">https://www.chromestatus.com/feature/5629709824032768</a> for more details.</p> </blockquote> <p>What I've tried. It was worked. But it is error</p> <blockquote> <p>GET <a href="http://cors-anywhere.herokuapp.com/https://cutt.ly/api/api.php?key=ehelkhej45jjb38h6f5234234hg&amp;short=redisgate.kr&amp;name=redisgate" rel="nofollow noreferrer">http://cors-anywhere.herokuapp.com/https://cutt.ly/api/api.php?key=ehelkhej45jjb38h6f5234234hg&amp;short=redisgate.kr&amp;name=redisgate</a> 500 (Internal Server Error)</p> </blockquote> <pre class="lang-js prettyprint-override"><code>var options = "https://cutt.ly/api/api.php?key=ehelkhej45jjb38h6f5234234hg&amp;short=www.google.com&amp;name=googleuri" $.ajaxPrefilter( function (options) { if (options.crossDomain &amp;&amp; jQuery.support.cors) { var http = (window.location.protocol === 'http:' ? 'http:' : 'https:'); options.url = http + '//cors-anywhere.herokuapp.com/' + options.url; } }); $.get( options, function (response) { console.log("&gt; ", response); }); </code></pre> <p><a href="https://cutt.ly/cuttly-api" rel="nofollow noreferrer">This link</a> is the link that has API usage. How can you solve this problem?</p> </div>

jboss-EAP启动上下文的问题

16:17:55,489 ERROR [org.jboss.as.server] (management-handler-thread - 6) JBAS015 870: 部署 "itoo-basic-teacher-ear-full.ear" 的部署被回滚并带有下列错误消息: {"JBAS014671: 失败的服务" => {"jboss.web.deployment.default-host./itoo-basic-tea cher-web" => "org.jboss.msc.service.StartException in service jboss.web.deployme nt.default-host./itoo-basic-teacher-web: org.jboss.msc.service.StartException in anonymous service: JBAS018040: 启动上下文失败 Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS01 8040: 启动上下文失败"}} 16:17:55,596 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 80) JBAS0114 03: 停止 Persistence Unit 服务 'itoo-basic-teacher-ear-full.ear/itoo-excelV2.0-a pi.jar#MT_HOTEL_SERVICE' 16:17:55,599 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 71) JBAS0114 03: 停止 Persistence Unit 服务 'itoo-basic-teacher-ear-full.ear/itoo-basic-teach er-web.war#MT_HOTEL_SERVICE' 16:17:55,598 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 81) JBAS0114 03: 停止 Persistence Unit 服务 'itoo-basic-teacher-ear-full.ear/itoo-basic-api.j ar#MT_HOTEL_SERVICE' 16:17:55,597 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 65) JBAS0114 03: 停止 Persistence Unit 服务 'itoo-basic-teacher-ear-full.ear/itoo-authority-a pi.jar#MT_HOTEL_SERVICE' 16:17:55,604 INFO [stdout] (ServerService Thread Pool -- 80) [EL Warning]: 2017 -03-05 16:17:55.603--Thread(Thread[ServerService Thread Pool -- 80,5,ServerServi ce ThreadGroup])--session_manager_no_partition 16:17:55,615 INFO [stdout] (ServerService Thread Pool -- 65) [EL Config]: 2017- 03-05 16:17:55.614--ServerSession(800566064)--Connection(1500604457)--Thread(Thr ead[ServerService Thread Pool -- 65,5,ServerService ThreadGroup])--disconnect 16:17:55,618 INFO [stdout] (ServerService Thread Pool -- 65) [EL Info]: 2017-03 -05 16:17:55.617--ServerSession(800566064)--Thread(Thread[ServerService Thread P ool -- 65,5,ServerService ThreadGroup])--/vfs:/D:/tools/jboss-eap-6.2-itoo4.0/bi n/content/itoo-basic-teacher-ear-full.ear/itoo-authority-api.jar/_MT_HOTEL_SERVI CE logout successful 16:17:55,622 INFO [stdout] (ServerService Thread Pool -- 65) [EL Warning]: 2017 -03-05 16:17:55.621--Thread(Thread[ServerService Thread Pool -- 65,5,ServerServi ce ThreadGroup])--session_manager_no_partition 16:17:55,625 INFO [stdout] (ServerService Thread Pool -- 81) [EL Config]: 2017- 03-05 16:17:55.624--ServerSession(171065381)--Connection(1423559114)--Thread(Thr ead[ServerService Thread Pool -- 81,5,ServerService ThreadGroup])--disconnect 16:17:55,627 INFO [stdout] (ServerService Thread Pool -- 81) [EL Info]: 2017-03 -05 16:17:55.627--ServerSession(171065381)--Thread(Thread[ServerService Thread P ool -- 81,5,ServerService ThreadGroup])--/vfs:/D:/tools/jboss-eap-6.2-itoo4.0/bi n/content/itoo-basic-teacher-ear-full.ear/itoo-basic-api.jar/_MT_HOTEL_SERVICE l ogout successful 16:17:55,630 INFO [stdout] (ServerService Thread Pool -- 81) [EL Warning]: 2017 -03-05 16:17:55.63--Thread(Thread[ServerService Thread Pool -- 81,5,ServerServic e ThreadGroup])--session_manager_no_partition 16:17:55,635 INFO [stdout] (ServerService Thread Pool -- 71) [EL Config]: 2017- 03-05 16:17:55.632--ServerSession(1481767078)--Connection(2138480062)--Thread(Th read[ServerService Thread Pool -- 71,5,ServerService ThreadGroup])--disconnect 16:17:55,637 INFO [stdout] (ServerService Thread Pool -- 71) [EL Info]: 2017-03 -05 16:17:55.637--ServerSession(1481767078)--Thread(Thread[ServerService Thread Pool -- 71,5,ServerService ThreadGroup])--/vfs:/D:/tools/jboss-eap-6.2-itoo4.0/b in/content/itoo-basic-teacher-ear-full.ear/itoo-basic-teacher-web.war/WEB-INF/li b/itoo-basic-api-0.0.2-SNAPSHOT.jar/_MT_HOTEL_SERVICE logout successful 16:17:55,640 INFO [stdout] (ServerService Thread Pool -- 71) [EL Warning]: 2017 -03-05 16:17:55.64--Thread(Thread[ServerService Thread Pool -- 71,5,ServerServic e ThreadGroup])--session_manager_no_partition 16:17:55,650 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA S015877: Stopped deployment null (runtime-name: itoo-base.jar) in 159ms 16:17:55,653 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA S015877: Stopped deployment null (runtime-name: itoo-excelV2.0-api.jar) in 162ms 16:17:55,653 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBA S015877: Stopped deployment null (runtime-name: itoo-basic-api.jar) in 162ms 16:17:55,652 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBA S015877: Stopped deployment null (runtime-name: itoo-basic-teacher-core.jar) in 161ms 16:17:55,651 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBA S015877: Stopped deployment null (runtime-name: itoo-authority-api.jar) in 160ms 16:17:55,659 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBA S015877: Stopped deployment null (runtime-name: itoo-tool.jar) in 168ms 16:17:55,654 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBA S015877: Stopped deployment null (runtime-name: itoo-cloud-api.jar) in 162ms 16:17:55,940 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBA S015877: Stopped deployment null (runtime-name: itoo-basic-teacher-web.war) in 4 48ms 16:17:56,046 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBA S015877: Stopped deployment itoo-basic-teacher-ear-full.ear (runtime-name: itoo- basic-teacher-ear-full.ear) in 557ms

下面代码有线程问题吗?

public class TestObject { private static int num = 0; public static int getNum(){ Thread th=Thread.currentThread(); try { th.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } if(num<100){ return num++; } if(num == 100){ num = 0; return 100; } return 0; } } ``` ``` public class MainObj { public static void main(String[] args) { Thread t = new Thread(new Thr()); Thread t1 = new Thread(new Thr()); t.start(); t1.start(); } } class Thr implements Runnable{ @Override public void run() { while (true) { int num = TestObject.getNum(); System.out.println(Thread.currentThread().getName()+":"+num); } } } ``` ```

IDEA中如何把一个花括号的css格式化为一行

把这种变成下边一行的形式 ``` .hpro-thr { padding-left: 14% } .hpro-fou { padding-right: 0; padding-left: 17% } ``` ``` .hpro-thr{padding-left:14%} .hpro-fou{padding-right:0;padding-left:17%} ```

cmd中mysql的配置异常问题

我的mysql,在cmd命令中打不开,于是我用以下方法 1.找到配置文件my.ini  ,然后将其打开,可以选择用记事本打开 2.打开后,搜索mysqld关键字 找到后,在mysqld下面添加skip-grant-tables,保存退出。 3.保存后在控制面板服务里面重启mySQL 4.然后运行cmd 输入mysql -u root -p就可以不用密码登录了,出现password:的时候直接回车可以进入。 五 1.进入mysql数据库: mysql> use mysql;Database changed 2.给root用户设置新密码,蓝色部分自己输入:mysql> update user set password=password("123456") where user="root";Query OK, 1 rows affected (0.04 sec)Rows matched: 1 Changed: 1 Warnings: 0 3.刷新数据库mysql> flush privileges;Query OK, 0 rows affected (0.01 sec) 4.退出mysql:mysql> quitBye PS:123456为新密码,用户可根据自己需要修改成自己的密码; 6.改好之后,再修改一下my.ini这个文件,把我们刚才加入的"skip-grant-tables"这行删除,保存退出再重启mysql服务就可以了。 在第五大步的第2小步出现了问题 mysql> use mysql;Database changed Database changed -> mysql> update user set password=password("123456") where user="root";Query OK, 1 rows affected (0.04 sec)Rows matched: 1 Changed: 1 Warnings: 0 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Database changed mysql> update user set password=password("123456") where user="' at line 1 -> 这个错误不知道什么原因,求大神

jmeter压测websocket提示:不能连接到服务

jmeter压测websocket,查看结果书中请求和相应数据中没有东西,取样器结果中: Response message: [Execution Flow] - Opening new connection - Using response message pattern "" - Using disconnect pattern "" - Waiting for the server connection for 5000 MILLISECONDS - Cannot connect to the remote server - Waiting for messages for 20000 MILLISECONDS - WebSocket session wasn't started (...that's odd) - WebSocket client closed by the client [Variables] - Message count: 0 [Problems] Response headers: SampleResult fields: ContentType: DataEncoding: UTF-8

关于 数据结构 线索二叉树的建立和实现

学习了严蔚敏的《数据结构》为了加深映像,把上面的代码自己敲了一遍。在VC6.0里,编译 和链接都通过了,但是没有办法运行,恳求各位高手和大师告诉我,哪里出问题了,我实在 是找不出来啊!!! #include "stdafx.h" #include <stdio.h> #include <stdlib.h> #include "math.h" typedef char TElemType; typedef enum PointerTag{Link,Thread}; typedef struct BiThrNode//建立线索二叉树的储存结构 { TElemType data; struct BiThrNode *lchild,*rchild; PointerTag LTag,RTag; }BiThrNode,*BiThrTree; BiThrTree pre;//定义的全局变量, void CreateBiTree(BiThrTree &T)//创建线索二叉树 { for(int i=1;i<7;++i) { char ch; scanf("%c",&ch); if(ch==' ') { T=NULL; } else { if(!(T=(BiThrNode*)malloc(sizeof(BiThrNode)))) { exit(OVERFLOW); } T->data=ch; CreateBiTree(T->lchild); CreateBiTree(T->rchild); } } } void InThreading(BiThrTree p)//中序遍历进行中序线索化 { if(p) { InThreading(p->lchild); if(!p->lchild) { p->LTag=Thread; p->lchild=pre; } if(!pre->rchild) { pre->RTag=Thread; pre->rchild=p; } pre=p; InThreading(p->rchild); } } void InOrderThreading(BiThrTree &Thrt,BiThrTree T)//建立头结点,中序线索化二叉树 { if(!(Thrt=(BiThrTree)malloc(sizeof(BiThrNode)))) exit(OVERFLOW); Thrt->LTag=Link; Thrt->RTag=Thread; Thrt->rchild=Thrt; if(!T) T->lchild=Thrt; else { Thrt->lchild=T; pre=Thrt; InThreading(T); pre->rchild=Thrt; pre->RTag=Thread; Thrt->rchild=pre; } } int InOrderTraverse_Thr(BiThrTree T)//中序遍历线索二叉树 { BiThrTree p; p=T->lchild; while(p!=T) { while(p) p=p->lchild; if(p->data) return 0; while(p->RTag==Thread&&p->rchild!=T) { p=p->rchild; printf("%c",p->data); } p=p->rchild; } return 1; } int main(int argc, char* argv[]) { BiThrTree T; BiThrTree Thr; printf("请输入前序二叉树的内容;\n"); CreateBiTree(T); //建立二叉树 InOrderThreading(T,T); //加入头结点,并线索化 printf("输出中序二叉树的内容:\n"); InOrderTraverse_Thr(T); printf("\n"); return 0; }

ubuntu 16.04 重启主机后,无线网卡需插拔后才可以使用,求老鸟们协查

最近在台式机上安装了ubuntu 16.04,搭配了 USB插口的TP LINK TL-WN823N 无线网卡。 幸运的是可以正常上网了 不幸的是,只要reboot重启主机,无线网卡就需要重新插拔才可以用。 但是冷启动的话,无线网卡就可以正常使用,就是有的时候会掉线。 以下是一些命令,应该是看内核和驱动的吧 root@work-PC:~# uname -r 4.10.0-33-generic root@work-PC:~# lsusb: root@work-PC:~# lsusb Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 0bda:818b Realtek Semiconductor Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 003: ID 03f0:0324 Hewlett-Packard SK-2885 keyboard Bus 004 Device 002: ID 046d:c014 Logitech, Inc. Corded Workstation Mouse Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub root@work-PC:~# root@work-PC:~# lsusb -t: root@work-PC:~# lsusb -t /: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M |__ Port 2: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtl8xxxu, 480M root@work-PC:~# root@work-PC:~# lsmod | grep 8192: root@work-PC:~# lsmod | grep 8192 snd_hda_core 81920 4 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic,snd_hda_codec_realtek sudo dmesg | grep 8192: root@work-PC:~# sudo dmesg | grep 8192 [ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1 [ 0.000000] percpu: Embedded 36 pages/cpu @ffffa0f0bb600000 s107992 r8192 d31272 u524288 [ 0.000000] pcpu-alloc: s107992 r8192 d31272 u524288 alloc=1*2097152 [ 0.000000] RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=4. [ 12.031268] usb 1-2: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes): [ 12.031371] usb 1-2: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0 [ 12.031373] usb 1-2: RTL8192EU MAC: 30:b4:9e:84:1f:28 [ 12.031375] usb 1-2: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin root@work-PC:~# root@work-PC:~# sudo iwconfig: root@work-PC:~# sudo iwconfig enp0s25 no wireless extensions. lo no wireless extensions. wlx30b49e841f28 IEEE 802.11 ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm Retry short limit:7 RTS thr=2347 B Fragment thr:off Encryption key:off Power Management:off root@work-PC:~# root@work-PC:~#

SIFT算法如何修改阈值

SIFT的代码中如何修改阈值呢,如何调用opencv中已有的函数来修改阈值。 contr_thr和 curv_thr

BoneCP 数据库连接池连接报错

请教 Bonecp 连接池经常报 [com.jolbox.bonecp.ConnectionHandle(229)] [ERROR] Failed to acquire connection. Sleeping for 7000ms. Attempts left: 5 java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at com.jolbox.bonecp.BoneCP.obtainRawInternalConnection(BoneCP.java:256) at com.jolbox.bonecp.ConnectionHandle.obtainInternalConnection(ConnectionHandle.java:211) at com.jolbox.bonecp.ConnectionHandle.<init>(ConnectionHandle.java:170) at com.jolbox.bonecp.PoolWatchThread.fillConnections(PoolWatchThread.java:101) at com.jolbox.bonecp.PoolWatchThread.run(PoolWatchThread.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) [com.jolbox.bonecp.ConnectionHandle(215)] [INFO ] Successfully re-established connection to DB

linux下利用/proc进行进程树的打印

在linux下利用c语言实现的进程树的打印,主要通过/proc下的目录中的进程文件,获取status中的进程信息内容,然后利用递归实现进程树的打印

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

Python数据分析与挖掘

92讲视频课+16大项目实战+源码+¥800元课程礼包+讲师社群1V1答疑+社群闭门分享会=99元 &nbsp; 为什么学习数据分析? &nbsp; &nbsp; &nbsp; 人工智能、大数据时代有什么技能是可以运用在各种行业的?数据分析就是。 &nbsp; &nbsp; &nbsp; 从海量数据中获得别人看不见的信息,创业者可以通过数据分析来优化产品,营销人员可以通过数据分析改进营销策略,产品经理可以通过数据分析洞察用户习惯,金融从业者可以通过数据分析规避投资风险,程序员可以通过数据分析进一步挖掘出数据价值,它和编程一样,本质上也是一个工具,通过数据来对现实事物进行分析和识别的能力。不管你从事什么行业,掌握了数据分析能力,往往在其岗位上更有竞争力。 &nbsp;&nbsp; 本课程共包含五大模块: 一、先导篇: 通过分析数据分析师的一天,让学员了解全面了解成为一个数据分析师的所有必修功法,对数据分析师不在迷惑。 &nbsp; 二、基础篇: 围绕Python基础语法介绍、数据预处理、数据可视化以及数据分析与挖掘......这些核心技能模块展开,帮助你快速而全面的掌握和了解成为一个数据分析师的所有必修功法。 &nbsp; 三、数据采集篇: 通过网络爬虫实战解决数据分析的必经之路:数据从何来的问题,讲解常见的爬虫套路并利用三大实战帮助学员扎实数据采集能力,避免没有数据可分析的尴尬。 &nbsp; 四、分析工具篇: 讲解数据分析避不开的科学计算库Numpy、数据分析工具Pandas及常见可视化工具Matplotlib。 &nbsp; 五、算法篇: 算法是数据分析的精华,课程精选10大算法,包括分类、聚类、预测3大类型,每个算法都从原理和案例两个角度学习,让你不仅能用起来,了解原理,还能知道为什么这么做。

广工操作系统课程设计(文档+代码+可执行文件)

实现作业调度(先来先服务)、进程调度功能(时间片轮转) 实现内存管理功能(连续分配)。 实现文件系统功能(选作) 这些功能要有机地连接起来

Only老K说-爬取妹子图片(简单入门)

安装第三方请求库 requests 被网站禁止了访问 原因是我们是Python过来的 重新给一段 可能还是存在用不了,使用网页的 编写代码 上面注意看匹配内容 User-Agent:请求对象 AppleWebKit:请求内核 Chrome浏览器 //请求网页 import requests import re //正则表达式 就是去不规则的网页里面提取有规律的信息 headers = { 'User-Agent':'存放浏览器里面的' } response = requests.get

linux“开发工具三剑客”速成攻略

工欲善其事,必先利其器。Vim+Git+Makefile是Linux环境下嵌入式开发常用的工具。本专题主要面向初次接触Linux的新手,熟练掌握工作中常用的工具,在以后的学习和工作中提高效率。

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

Python数据清洗实战入门

本次课程主要以真实的电商数据为基础,通过Python详细的介绍了数据分析中的数据清洗阶段各种技巧和方法。

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

apache-jmeter-5.1.1(Requires Java 8+).zip

。Apache JMeter 5.1.1 (Requires Java 8+),需要jdk8以上的版本。

数通HCNP中文理论全套教材.rar

内涵HCNP-IENP中文理论书-内文,

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

图书管理系统(Java + Mysql)我的第一个完全自己做的实训项目

图书管理系统 Java + MySQL 完整实训代码,MVC三层架构组织,包含所有用到的图片资源以及数据库文件,大三上学期实训,注释很详细,按照阿里巴巴Java编程规范编写

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

C/C++学习指南全套教程

C/C++学习的全套教程,从基本语法,基本原理,到界面开发、网络开发、Linux开发、安全算法,应用尽用。由毕业于清华大学的业内人士执课,为C/C++编程爱好者的教程。

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

2021考研数学张宇基础30讲.pdf

张宇:博士,全国著名考研数学辅导专家,教育部“国家精品课程建设骨干教师”,全国畅销书《张宇高等数学18讲》《张宇线性代数9讲》《张宇概率论与数理统计9讲》《张宇考研数学题源探析经典1000题》《张宇考

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 购课后添加学习助手(微信号:csdn590),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdn590</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

DDR5_Draft_Spec_Rev05c.pdf

DDR5 spec

Java面试史上最全的JAVA专业术语面试100问 (前1-50)

前言: 说在前面, 面试题是根据一些朋友去面试提供的,再就是从网上整理了一些。 先更新50道,下一波吧后面的也更出来。 求赞求关注!! 废话也不多说,现在就来看看有哪些面试题 1、面向对象的特点有哪些? 抽象、继承、封装、多态。 2、接口和抽象类有什么联系和区别? 3、重载和重写有什么区别? 4、java有哪些基本数据类型? 5、数组有没有length()方法?String有没有length()方法? 数组没有length()方法,它有length属性。 String有length()方法。 集合求长度用

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

本课程适合CCNA或HCNA网络小白同志,高手请绕道,可以直接学习进价课程。通过本预科课程的学习,为学习网络工程师、思科CCNA、华为HCNA这些认证打下坚实的基础! 重要!思科认证2020年2月24日起,已启用新版认证和考试,包括题库都会更新,由于疫情原因,请关注官网和本地考点信息。题库网络上很容易下载到。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

Python界面版学生管理系统

前不久上传了一个控制台版本的学生管理系统,这个是Python界面版学生管理系统,这个是使用pycharm开发的一个有界面的学生管理系统,基本的增删改查,里面又演示视频和完整代码,有需要的伙伴可以自行下

2019数学建模A题高压油管的压力控制 省一论文即代码

2019数学建模A题高压油管的压力控制省一完整论文即详细C++和Matlab代码,希望对同学们有所帮助

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

相关热词 c#框体中的退出函数 c# 按钮透明背景 c# idl 混编出错 c#在位置0处没有任何行 c# 循环给数组插入数据 c# 多线程死锁的例子 c# 钉钉读取员工排班 c# label 不显示 c#裁剪影像 c#工作进程更新ui
立即提问