输入输出函数家族
家族名
用途
可用于所有的流
只用于stdin 和stdout
getchar
字符输入
fgetc ,getc
getchar
putchar
字符输出
fputc ,putc
putchar
gets
文本行输入
fgets
gets
...
Heller
5年前 (2016-02-03) 1286℃ 0评论
0喜欢
1.求下面函数的返回值(微软)
int func(x)
{
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
}
return countx;
}
假定x = 9999。 答案:8
思路:将x转化为2进制,看含有的1...
Heller
5年前 (2016-02-03) 1284℃ 0评论
0喜欢
一、 #include “filename.h” 和 #include <filename.h> 的区别
#include “filename.h” 是指编译器将从当前工作目录上开始查找此文件
#include <...
Heller
5年前 (2016-02-03) 6755℃ 0评论
0喜欢