注释过的源码太多就不放在这,可以去GitHub查看 下面是测试程序: #include "Exception.h" #include <iostream> class Bar { public: void test() { throw::muduo::Exception("oops"); // 抛出 ...
分类:
其他好文 时间:
2021-03-18 14:42:02
阅读次数:
0
类型用__int64 占位符为%I64X 负数加负数会爆 因为底层还是二进制运算 二进制最大位为1则为负数 转换回来就很大了 而且十六进制不会输出正负号 ```c++ #include<iostream>using namespace std;int main(){ __int64 a,b; whi ...
分类:
其他好文 时间:
2021-03-18 14:33:04
阅读次数:
0
题目链接:http://poj.org/problem?id=2255 递归经典习题。具体见代码: #include <iostream> #include <cstring> using namespace std; char a[111], b[111]; void dfs(int L1, in ...
分类:
其他好文 时间:
2021-03-18 14:30:29
阅读次数:
0
xmlns:viewModelBase="clr-namespace:JKSY.ViewModels.Base;assembly=JKSY" viewModelBase:ViewModelLocator.AutoWireViewModel="true"> 使用这个自动绑定,然后页面进行实例化的时候, ...
分类:
其他好文 时间:
2021-03-18 14:09:13
阅读次数:
0
比赛链接:https://pintia.cn/market/item/1371703238093053952 7-1 打印三角形拼图 (15 分) 题解 找规律。 代码 #include <bits/stdc++.h> using namespace std; int main() { ios::s ...
分类:
其他好文 时间:
2021-03-17 15:03:51
阅读次数:
0
C++ 关于 freopen 函数 名 称:freopen 所 属:stdio.h 功 能:用于重定向输入输出流。该函数可以在不改变代码原貌的情况下改变输入输出环境,但使用时应当保证流是可靠的。 实例 #include <bits/stdc++.h> using namespace std; int ...
分类:
编程语言 时间:
2021-03-17 14:47:39
阅读次数:
0
<?php namespace app\common\controller;use app\common\controller\WechatAuth; class PortalBase extends Base{ protected function _initialize() { parent:: ...
分类:
微信 时间:
2021-03-17 14:39:03
阅读次数:
0
基本开发环境: ·Python3.6 ·Pycharm 相关模块使用: import requests import time 目标网页分析: 选择一个影视栏目,F12或者鼠标右键检查,打开开发者工具,选择network,下滑网页 https://haokan.baidu.com/videoui/a ...
分类:
编程语言 时间:
2021-03-17 14:20:20
阅读次数:
0
配置文件 vi /etc/network/interfaces 自动IP # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto ens33 iface ens33 inet dhc ...
分类:
系统相关 时间:
2021-03-17 14:16:49
阅读次数:
0
1.对于 1<<(32或者更大),答案都是正常处理得到0 2.但是假如说1<<(x),x为一个变量,那么在移位前x会对32取模 ###验证 使用vs2019的c++项目,执行以下代码 #include <iostream> using namespace std; int main() { cout ...
分类:
编程语言 时间:
2021-03-17 14:15:23
阅读次数:
0