import java.io.*; public class Employee{ String name; int age; String designation; double salary; // This is the constructor of the class Employee pub ...
分类:
编程语言 时间:
2018-09-28 15:20:42
阅读次数:
163
大于等于1 任何大于等于1 的自然数n 阶乘表示方法: 或 0的阶乘 0!=1。 1、求n! /* 所有c语言代码,都是在LoadRunner中运行; */ int getFactorial(int n);Action(){ lr_output_message("%d",getFactorial(0 ...
分类:
其他好文 时间:
2018-09-28 01:36:22
阅读次数:
281
#include<reg52.h>#include<intrins.h>#define uint unsigned int#define uchar unsigned charsbit D=P2^6;sbit W=P2^7;sbit D0=P1^0;uchar num;uint x,y,z;ucha ...
分类:
其他好文 时间:
2018-09-28 01:26:00
阅读次数:
125
2018-09-27 22:02:36 一、Basic Calculator II 问题描述: 问题求解: sign用来保存前一个符号,用num来记录数字,如果碰到一个符号或者到达结尾,则需要进行入栈操作,这个时候需要结合符号进行相应的运算。 二、Basic Calculator 问题描述: 问题求 ...
分类:
其他好文 时间:
2018-09-27 23:55:41
阅读次数:
182
链表提供高效的节点重排能力,以及顺序性的节点访问方式,并且可以通过增删节点来灵活的调整链表的长度。 1、Redis构建了自己的链表, 链表节点的结构(adlist.h/listNode): typedef struct listNode{ //前置节点 struct listNode *pre; / ...
分类:
其他好文 时间:
2018-09-26 01:17:08
阅读次数:
139
首先分清楚nohup与&: &是指在后台运行一般在执行命令后,都会显式的在前台执行,当Ctrl+C后进程回宕掉,但是 在命令后加&,即使Ctrl+C,程序还在进行,但是,当关闭Xshell后,程序就会宕掉。 nohup是指忽略SiGHUP信号,当关掉Xshell后,程序会一直存在,但是当执行Ctrl ...
分类:
其他好文 时间:
2018-09-25 19:33:49
阅读次数:
159
Posix消息队列(message queue) IPC函数中常用的参数取值: 打开或创建POSIX IPC对象所用的各种oflag常值o_RDONLY 只读O_WRONLY 只写O_RDWD 读写O_CREAT 若不存在则创建,存在则引用O_EXCL 排他性创建,需要和O_CREAT一起使用,当对 ...
分类:
其他好文 时间:
2018-09-25 01:32:27
阅读次数:
236
题目大意:给你一个字符串,求所有前缀在原串的出现次数之和 打个表推推,KMP+DP随便水水就过了吧 ...
分类:
其他好文 时间:
2018-09-24 23:22:03
阅读次数:
237
项目的gitee地址:https://gitee.com/ITtoto/WordCount 开发语言:C语言 PSP2.1表格 PSP2.1 PSP阶段 预估耗时 (分钟) 实际耗时 (分钟) Planning 计划 20 16 · Estimate · 估计这个任务需要多少时间 30 27 Dev ...
分类:
其他好文 时间:
2018-09-24 22:15:50
阅读次数:
331
在System类中提供了如下三个重定向标准输入/输出方法。 Reassigns the "standard" error output stream.(重定向“标准”错误输出流) Reassigns the "standard" input stream.(重定向“标准”输入流) Reassigns ...
分类:
编程语言 时间:
2018-09-24 21:45:54
阅读次数:
250