注释过的源码太多就不放在这,可以去GitHub查看 下面是测试程序: #include "Exception.h" #include <iostream> class Bar { public: void test() { throw::muduo::Exception("oops"); // 抛出 ...
分类:
其他好文 时间:
2021-03-18 14:42:02
阅读次数:
0
1 package com.pingfan.scanner; 2 3 import java.util.Scanner; 4 5 public class Demo3 { 6 public static void main(String[] args) { 7 Scanner scanner = n ...
分类:
其他好文 时间:
2021-03-18 14:30:41
阅读次数:
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
单行 多行 文档 public class HelloWorld { public static void main (String [] args) { //output hello world /* output hello world */ /** * @description hellowo ...
分类:
编程语言 时间:
2021-03-18 14:20:10
阅读次数:
0
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 ...
分类:
编程语言 时间:
2021-03-18 14:13:35
阅读次数:
0
数组作为函数参数传递的时候,会退化为指针,并不能得到数组的大小 一 void test1(int a[]) { cout << sizeof(a) << endl; } int main() { int a[4]; test1(a); } 输出结果是指针的大小,并不是数组的大小 二 void tes ...
分类:
编程语言 时间:
2021-03-18 14:12:35
阅读次数:
0
/* 实现一个线程安全的队列 */ template <class T> class SafeQueue { public: SafeQueue(void):q(),m(),c() {} ~SafeQueue(void) {} // Add an element to the queue. void ...
分类:
编程语言 时间:
2021-03-18 14:12:09
阅读次数:
0
HelloWord 新建文件夹,存放代码 新建一个Java文件 文件后缀名.java(Hello.java) 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,world! ...
分类:
其他好文 时间:
2021-03-18 14:11:04
阅读次数:
0
一 结果图示 二 代码 头文件 #ifndef CPROGRESS_H #define CPROGRESS_H #include <QWidget> #include <QPainter> #include <QDebug> #include <qmath.h> class CProgress : ...
分类:
其他好文 时间:
2021-03-17 15:07:57
阅读次数:
0
public void fun() { String name="who"; String passwd="666"; log.info("name:{},passwd,{}",name,passwd); } ...
分类:
其他好文 时间:
2021-03-17 15:04:20
阅读次数:
0