C语
hejiahaodezhanghu
这个作者很懒,什么都没留下…
展开
-
结构体中“.”操作符合“->”操作符的区别
作者是一名刚接触C语言不就的新手,最近在学习结构体部分的知识遇到了一些问题。先上代码/*using an array of structures*/#include <stdio.h>#include <string.h>#define TSIZE 45/*size of array to hold title*/#define FMAX 5/*maximum ...原创 2018-06-26 23:23:45 · 736 阅读 · 0 评论 -
Int和float型的数转成字节流(C语言版)
#include <stdio.h>#include <string.h>int main(){ while(1) { int n = 0; int nBit[32] = {0}; union IntFloat{ int IntegerNum; float floatNum; }; typedef union IntFloat U...原创 2019-06-27 23:32:27 · 650 阅读 · 0 评论