摘要:
在循环中使用scanf的注意事项: 如果输入的格式不正确,则在后面的循环中会跳过scanf(),从而变成死循环,或者无法得到想要的结果; 如 #include <stdio.h> int main() { unsigned int year; char flag = 0, m; printf("请输 阅读全文
摘要:
1、为什么驱动程序中有很多函数前要加上static ? 因为内核中很多函数都是可能重名的,而函数默认为extern形式,所以尽量需要将本文件内使用的函数加上static,防止引用函数时出错。 2、用户空间User space is system memory allocated to running 阅读全文