相关分类: Java技术 C/C++ VB delphi
  • 空格分隔输出

    总时间限制:1000ms内存限制:65536kB 描述 读入一个字符,一个整数,一个单精度浮点数,一个双精度浮点数,然后按顺序输出它们,并且要求在他们之间用一个空格分隔。输出浮点数时保留6位小数。 输入 共有四行: 第一行是一个字符; 第二行是一个整数; 第三行是一个单精...

    2018-06-18 03:59:42

  • 面向对象中装饰模式的理解

    ...

    2018-06-18 03:59:45

  • hdu 6161--Big binary tree(思维--压缩空间)

    题目链接 Problem Description You are given a complete binary tree with n nodes. The root node is numbered 1, and node x's father node is x / 2 . At the beginning, node x has a value of exactly x. We define the value of a path as the sum of all nodes...

    2018-06-18 03:59:41

  • 读书笔记--C陷阱与缺陷(一)

    要参与C语言项目,于是作者只好重拾C语言(之前都是C++,还是C++方便)。 看到大家都推荐看看 C陷阱与缺陷(C traps and pitfalls),于是好奇的开始了这本书的读书之旅。 决定将书中重要的知识点和易错点记录下来方便自己复习和他人学习~~不多说了,下面开始。 第一章...

    2018-06-18 03:59:41 学c语言

  • 1.1 初识指针

    指针是一个特殊的变量,它里面存储的数值被解释成为内存里的一个地址。 要搞清一个指针需要搞清指针的四方面的内容:指针的类型,指针所指向的 类型,指针的值或者叫指针所指向的内存区,还有指针本身所占据的内存区。让我们分别说明。 先声明几个指针放着做例子: 例...

    2018-06-18 03:59:40

  • C语言学习之第一个程序

    1 #includestdio.h 2 3 int main() 4 { 5 printf( " This is my first program!\n " ); 6 7 return 0 ; 8 } 基本格式大致如下: 1 #includestdio.h 2 3 int main() 4 { 5 printf( " " ); 6 7 return 0 ; 8 } 而printf里面地内容原封不动地输出,而\n部分是换一行输出地...

    2018-06-18 03:59:38

  • 用openssl库RSA加密解密

    1 #include stdio.h 2 #include openssl/rsa.h 3 #include openssl/pem.h 4 #include openssl/err.h 5 6 // 加密 7 int my_encrypt( const char *input, int input_len, char *output, int *output_len, const char * pri_key_fn) 8 { 9 RSA *p_rsa = NULL; 10 FILE *f...

    2018-06-18 03:59:36

  • C语言获取Linux系统精确时间

    gettimeofday()函数的使用方法 1.函数原型 #include sys/time.h int gettimeofday(struct timeval *tv, struct timezone *tz); 2.说明 gettimeofday()会把目前的时间用tv 结构体返回,当地时区的信息则放到tz所指的结构中 3.结构体 struct timeval{ long tv_sec;/*秒*/...

    2018-06-18 03:59:35

  • Python基础01

    主要内容: 输出 注释 标识符 变量 数据类型 运算符 缩进 输出 “Hello,Python” shell模式下输出 print ( " Hello,Python " )Hello,Python 注释 方法1.单行注释 # 方法2.多行注释 ··· ··· 三引号 # print("Hello,Python!") print ( " Hello,Python! " ) ''' pr...

    2018-06-18 03:59:32

  • APUE 2 - 进程组(process group) 会话(session) j

    进程组(process group) 进程组顾名思义是指一个或多个进程的集合。他们通常与同一个job(可以从同一个终端接收信号)相关联。 每个进程组拥有一个唯一的Process Group Id。可以使用getpgrp或getpgid获取进程的Process Group Id: 1 #include unistd.h 2 3 /* 4 返回调...

    2018-06-18 03:59:33

2