码迷,mamicode.com
首页 >  
搜索关键字:case..when ....end    ( 31190个结果
C for,while,do while 代码实现
这里用go to 来模拟汇编他们的区别 while 代码 int i = 0; while (i < 100) { i++; } goto 实现while int i = 0; WHILE_BEGIN: if (i < 100) { goto WHILE_END; } i++; goto WHILE ...
分类:其他好文   时间:2021-04-19 15:45:52    阅读次数:0
第二类斯特林数·行
\(\text{Problem}:\)第二类斯特林数·行 \(\text{Solution}:\) 引理 \(1\): \[ x^{n}=\sum\limits_{i=0}^{n}\binom{x}{i}{n\brace i}i! \] 把上界 \(n\) 改为 \(x\) 就可以二项式反演了。设 ...
分类:其他好文   时间:2021-04-19 15:37:21    阅读次数:0
树(上半期)
树 建树 struct tr{ char x; tr*lc,*rc; }; #define nu NULL // 建树 tr* create() { tr*t ; char x;cin>>x; if(x=='#') { t=nu; }else{ t=new tr; t->x=x; t->lc=nu; ...
分类:其他好文   时间:2021-04-19 15:00:42    阅读次数:0
Log4j日志文件的使用
在使用Log4j的类中导入包 import org.apache.log4j.Logger; 日志对象,参数为当前类的class static Logger logger = Logger.getLogger(UserDaoTest.class); //LogDemo为相关的类 日志级别: logg ...
分类:其他好文   时间:2021-04-19 14:56:03    阅读次数:0
react this指向问题
在JSX事件函数方法中的 this,默认不会绑定 this指向。如果你忘记绑定,当你调用这个函数的时候 this 的值为 undefined。所以使用时一定要绑定好this的指向。 构造方法中绑定 constructor(props){ super(props) // 在构造方法中指定this指向 ...
分类:其他好文   时间:2021-04-19 14:45:33    阅读次数:0
GUI编程——单选框、复选框以及多选框
单选框 1 package com.kuang.lesson05; 2 3 import javax.swing.*; 4 import java.awt.*; 5 import java.net.URL; 6 7 public class JButtonDemo02 extends JFrame ...
分类:其他好文   时间:2021-04-16 12:11:51    阅读次数:0
c++中虚函数的默认值
1. 虚函数中存在默认值时,需要注意其函数调用中默认值: class cbase { public: virtual void func(int a = 10) { cout << "this is cbase func:" << a << endl; } }; class csub : publi ...
分类:编程语言   时间:2021-04-16 12:03:44    阅读次数:0
stl merge用法
merge函数的作用是:将两个已经排好序的序列合并为一个有序的序列。 函数参数:merge(first1,last1,first2,last2,result,compare); firs1t为第一个容器的首迭代器,last1为第一个容器的末迭代器; first2为第二个容器的首迭代器,last2为容 ...
分类:其他好文   时间:2021-04-16 11:46:46    阅读次数:0
13 变量
系统变量:全局变量、会话变量 自定义变量:用户变量、局部变量 一、系统变量 说明:变量由系统提供,不是用户定义,属于服务器层面,当服务器启动的时候,服务器会提供这样的系统变量,并赋予默认值,供我们使用。 1.全局变量 作用域:服务器每次启动将为所有全局变量赋初值,针对于所有会话(连接)有效,但不能跨 ...
分类:其他好文   时间:2021-04-16 11:42:09    阅读次数:0
解决Gitlab的The remote end hung up unexpectedly错误,解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题
解决Gitlab的The remote end hung up unexpectedly错误 解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题 解决办法1: ...
分类:Web程序   时间:2021-04-15 12:34:26    阅读次数:0
31190条   上一页 1 ... 26 27 28 29 30 ... 3119 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!