输入输出函数家族 家族名
用途
可用于所有的流
只用于stdin 和stdout getchar
字符输入
fgetc ,getc
getchar putchar
字符输出
fputc ,putc
putchar gets
文本行输入
fgets
gets ... Heller 4年前 (2016-02-03) 851℃ 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 4年前 (2016-02-03) 875℃ 0评论 0喜欢
一、 #include “filename.h” 和 #include <filename.h> 的区别
#include “filename.h” 是指编译器将从当前工作目录上开始查找此文件
#include <... Heller 4年前 (2016-02-03) 793℃ 0评论 0喜欢