摘要:
#include #include // 任务类型定义typedef struct _myTask{ struct _coefficient { unsigned char a; unsigned char ... 阅读全文
posted @ 2018-08-19 14:55
wdliming
阅读(194)
评论(0)
推荐(0)
摘要:
#include #include int main(){ char a = 0; //int * p = (int * ) malloc (4 * sizeof(int)); int * p = (int * ... 阅读全文
posted @ 2018-08-19 14:53
wdliming
阅读(114)
评论(0)
推荐(0)
摘要:
__attribute__ ((packed)) 的作用就是告诉编译器取消结构在编译过程中的优化对齐,按照实际占用字节数进行对齐,是GCC特有的语法。这个功能是跟操作系统没关系,跟编译器有关 。 __attrib... 阅读全文
posted @ 2018-08-19 14:47
wdliming
阅读(699)
评论(0)
推荐(0)
摘要:
代码如下: #include #include #include #include char ch1[]={ 'c', '+', '+'};char ch2[]={ 'c', '+', '+', '\0'};ch... 阅读全文
posted @ 2018-08-19 14:46
wdliming
阅读(117)
评论(0)
推荐(0)

浙公网安备 33010602011771号