![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C
asran
这个作者很懒,什么都没留下…
展开
-
typedef
1. primitivetypedef int Integer;Integer i; 2. arraytypedef int Arr[10];Arr a, b, c; 3. function pointer#include<stdio.h> typedef int (*pfn)(int, int); void main(){i...2010-12-21 22:52:39 · 82 阅读 · 0 评论 -
Programming C in Linux
0. install compiler and associate environment.sudo apt-get install build-essentialor install with CD(without internet):sudo apt-cdrom addsudo aptitude updatesudo aptitude install build-es...2010-12-22 13:28:47 · 111 阅读 · 0 评论 -
const
There are two type of const:1. const int *p; <----- pointer 'p' is not const, while to what it points is const.e.g.:int i;const int ci = 5;const int *p;p = &i;p = &ci;*p = 1...2010-12-22 21:33:14 · 133 阅读 · 0 评论 -
How to build static library and how to use it in Linux
1. declare the interface of libray: max.h ------------------------------ int max(int,int);2. implement the interface: max.c ------------------------------ #include "max.h" int max(int a, int ...2010-12-23 08:46:57 · 137 阅读 · 0 评论