
C
文章平均质量分 78
早迎朝阳晚迎星光
这个作者很懒,什么都没留下…
展开
-
another test
目录:1.一些被认作函数的宏2.关于printf的一个测试3.%c与%1s的测试4.FILE的定义5.标准输入输出6.ferror7.ferror的孪生兄弟feof8.exit9.calloc与malloc的小区别10.free11.isupper--------------------原创 2014-01-21 14:23:00 · 696 阅读 · 0 评论 -
溢出判断<求最值的方法>
前言数字在计算机中采用补码表示,以int来表示其范围[-2^31, 2^31-1]。具体细节不谈了,如果求int的最小值呢?当然limits.h中有定义。如何求最值上代码吧!#include #include using namespace std;int main(){ int i = 1<<31; int j = -i-1; if(i == INT_MIN) {原创 2014-03-12 11:15:52 · 929 阅读 · 0 评论 -
单链表C语言实现(Need edition)
CODE:Cyuyan#include #include #include typedef int ElemType;typedef struct _ListNode{ ElemType data; struct ListNode* next;}ListNode;ListNode * initSList();int isEmpty(ListNode *hea原创 2014-07-11 16:01:53 · 856 阅读 · 0 评论