码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
muduo: Exception Thread Mutex
注释过的源码太多就不放在这,可以去GitHub查看 下面是测试程序: #include "Exception.h" #include <iostream> class Bar { public: void test() { throw::muduo::Exception("oops"); // 抛出 ...
分类:其他好文   时间:2021-03-18 14:42:02    阅读次数:0
Scanner进阶使用
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
POJ2255 Tree Recovery 题解 根据前序+中序求二叉树的后序遍历
题目链接: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
Java注释
单行 多行 文档 public class HelloWorld { public static void main (String [] args) { //output hello world /* output hello world */ /** * @description hellowo ...
分类:编程语言   时间:2021-03-18 14:20:10    阅读次数:0
python3.6 安装uwsgi报错处理
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
C++实现简单的线程安全队列
/* 实现一个线程安全的队列 */ 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
Hello,world!
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
Qt 自定义 进度条 纯代码
一 结果图示 二 代码 头文件 #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
62627条   上一页 1 ... 57 58 59 60 61 ... 6263 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!