随笔分类 -  Val - C/C++

摘要:做题的时候经常遇到深度递归的,当然,可以改成非递归形式。如果写成递归形式会爆栈,所以可以用手工扩展栈。 微软的编译器(C++) pragma comment(linker, "/STACK:102400000,102400000") G++ int size = 256 阅读全文
posted @ 2017-05-02 03:24 ojnQ 阅读(433) 评论(0) 推荐(0)
摘要:1. 概述 函数名: fflush() 功 能: 清除读写缓冲区,需要立即把输出缓冲区的数据进行物理写入时 头文件: stdio.h 原型: int fflush(FILE stream),其中stream是要冲洗的流 2. 函数说明 fflush()会强迫将缓冲区内的数据写回参数stream 指定 阅读全文
posted @ 2017-04-18 23:27 ojnQ 阅读(4442) 评论(0) 推荐(1)
摘要:转自http://blog.csdn.net/zklth/article/details/7978362 uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型?这些数据类型是 C99 中定义的,具体定义在:/usr/include/stdint.h ISO 阅读全文
posted @ 2017-04-10 23:34 ojnQ 阅读(1269) 评论(0) 推荐(0)