
【C/C++】
WangMeow
这个作者很懒,什么都没留下…
展开
-
有关memset()函数
一.函数介绍: memset是计算机中C/C++语言函数。将s所指向的某一块内存中的前n个 字节的内容全部设置为ch指定的ASCII值, 第一个值为指定的内存地址,块的大小由第三个参数指定,这个函数通常为新申请的内存做初始化工作, 其返回值为指向s的指针。原型:void *memset(void *s,int ch,size_t n); 头文件 :或 二.函数常见错误: ①:memset原创 2017-08-09 15:46:15 · 286 阅读 · 0 评论 -
[UVA](11827)Maximum GCD ---- 暴力+ungetc()函数
Given the N integers, you have to find the maximum GCD (greatest common divisor) of every possible pair of these integers. Input The first line of input is an integer N (1 < N < 100) that d...原创 2018-06-07 17:28:06 · 174 阅读 · 0 评论