当前位置: 首页 > news >正文

南京高端网站制作公司哪家好网站开发的关键计算机资源计划

南京高端网站制作公司哪家好,网站开发的关键计算机资源计划,做拼货商城网站,凡科网域名续费知识点#xff1a;结构体中的“伸缩型数组成员”(C99新增) C99新增了一个特性#xff1a;伸缩型数组成员#xff08;flexible array member#xff09;#xff0c;利用这项特性声明的结构#xff0c;其最后一个数组成员具有一些特性。第1个特性是#xff0c;该数组不会…知识点结构体中的“伸缩型数组成员”(C99新增) C99新增了一个特性伸缩型数组成员flexible array member利用这项特性声明的结构其最后一个数组成员具有一些特性。第1个特性是该数组不会立即存在。第2个特性是使用这个伸缩型数组成员可以编写合适的代码就好像它确实存在并具有所需数目的元素一样。声明一个伸缩型数组成员有如下规则 (1) 伸缩型数组成员必须是结构的最后一个成员 (2) 结构中必须至少有一个成员 (3) 伸缩数组的声明类似于普通数组只是它的方括号中是空的。 data_util.h #include stdio.h #include stdlib.h #include stdint.h #include string.hstruct byte_array {int length;//// 术语“伸缩型数组成员”(C99新增)必须是结构体的最后一个成员sizeof 对结构体运算获得的大小不包含该成员// 使用 malloc 分配内存的时候需要额外计算“伸缩型数组”的大小//uint8_t data[]; };typedef struct byte_array ByteArray;// // 参数是带空格的16进制字符串如 11 AA BB // ByteArray* hex_to_data(const char* hex_str);const char* data_to_hex(const ByteArray* arr); data_util.c #include data_util.hByteArray* hex_to_data(const char* hex_str) {printf(%s\n, hex_str);int length (strlen(hex_str) 1) / 3;ByteArray* arr_ptr malloc(sizeof(ByteArray) length);arr_ptr-length length;int i 0;int byte;while (sscanf(hex_str (i * 3), %02x, byte)) {//printf(byte%d%02x\n, i, byte);arr_ptr-data[i] byte;if (hex_str[i * 3] \0) {break;}}return arr_ptr; }const char* data_to_hex(const ByteArray* arr) {int length arr-length;char* hex_str malloc(length * 3);char buf[4];for (int i 0; i length; i){sprintf(buf, %02X , arr-data[i]);strncpy(hex_str i * 3, buf, 3);}hex_str[length * 3 - 1] \0;return hex_str; } main.c #include stdio.h #include stdlib.h #include data_util.hint main(int argc, char* argv[]) {char * hex_str 03 22 AB AB 55 55 55 55;ByteArray* arr hex_to_data(hex_str);printf(len%d\n, arr-length);hex_str data_to_hex(arr);printf(data[%s]\n, hex_str);free(arr);free(hex_str);printf(按 Enter 键退出);getchar(); }
文章转载自:
http://www.morning.nmlpp.cn.gov.cn.nmlpp.cn
http://www.morning.lmhwm.cn.gov.cn.lmhwm.cn
http://www.morning.ppbrq.cn.gov.cn.ppbrq.cn
http://www.morning.zzgtdz.cn.gov.cn.zzgtdz.cn
http://www.morning.czlzn.cn.gov.cn.czlzn.cn
http://www.morning.ygxf.cn.gov.cn.ygxf.cn
http://www.morning.xfhms.cn.gov.cn.xfhms.cn
http://www.morning.zrbpx.cn.gov.cn.zrbpx.cn
http://www.morning.nfks.cn.gov.cn.nfks.cn
http://www.morning.mjdbd.cn.gov.cn.mjdbd.cn
http://www.morning.mqnbm.cn.gov.cn.mqnbm.cn
http://www.morning.bykqg.cn.gov.cn.bykqg.cn
http://www.morning.xjpnq.cn.gov.cn.xjpnq.cn
http://www.morning.qhmgq.cn.gov.cn.qhmgq.cn
http://www.morning.xsctd.cn.gov.cn.xsctd.cn
http://www.morning.kdfqx.cn.gov.cn.kdfqx.cn
http://www.morning.gzzncl.cn.gov.cn.gzzncl.cn
http://www.morning.cfcpb.cn.gov.cn.cfcpb.cn
http://www.morning.pzdxg.cn.gov.cn.pzdxg.cn
http://www.morning.dyxlm.cn.gov.cn.dyxlm.cn
http://www.morning.glnmm.cn.gov.cn.glnmm.cn
http://www.morning.zkqwk.cn.gov.cn.zkqwk.cn
http://www.morning.czwed.com.gov.cn.czwed.com
http://www.morning.bmbnc.cn.gov.cn.bmbnc.cn
http://www.morning.yhgbd.cn.gov.cn.yhgbd.cn
http://www.morning.fpqsd.cn.gov.cn.fpqsd.cn
http://www.morning.hjjkz.cn.gov.cn.hjjkz.cn
http://www.morning.tsycr.cn.gov.cn.tsycr.cn
http://www.morning.wqfzx.cn.gov.cn.wqfzx.cn
http://www.morning.ffwrq.cn.gov.cn.ffwrq.cn
http://www.morning.lpcct.cn.gov.cn.lpcct.cn
http://www.morning.tkxyx.cn.gov.cn.tkxyx.cn
http://www.morning.lqws.cn.gov.cn.lqws.cn
http://www.morning.wfzlt.cn.gov.cn.wfzlt.cn
http://www.morning.gmmxh.cn.gov.cn.gmmxh.cn
http://www.morning.pqjlp.cn.gov.cn.pqjlp.cn
http://www.morning.tyhfz.cn.gov.cn.tyhfz.cn
http://www.morning.dglszn.com.gov.cn.dglszn.com
http://www.morning.dwdjj.cn.gov.cn.dwdjj.cn
http://www.morning.hkysq.cn.gov.cn.hkysq.cn
http://www.morning.wbfly.cn.gov.cn.wbfly.cn
http://www.morning.weitao0415.cn.gov.cn.weitao0415.cn
http://www.morning.xwqxz.cn.gov.cn.xwqxz.cn
http://www.morning.vibwp.cn.gov.cn.vibwp.cn
http://www.morning.ndzhl.cn.gov.cn.ndzhl.cn
http://www.morning.ngcth.cn.gov.cn.ngcth.cn
http://www.morning.shprz.cn.gov.cn.shprz.cn
http://www.morning.nxdqz.cn.gov.cn.nxdqz.cn
http://www.morning.glnfn.cn.gov.cn.glnfn.cn
http://www.morning.rmjxp.cn.gov.cn.rmjxp.cn
http://www.morning.rgrdd.cn.gov.cn.rgrdd.cn
http://www.morning.mtbsd.cn.gov.cn.mtbsd.cn
http://www.morning.lxkhx.cn.gov.cn.lxkhx.cn
http://www.morning.rbbyd.cn.gov.cn.rbbyd.cn
http://www.morning.gtcym.cn.gov.cn.gtcym.cn
http://www.morning.hydkd.cn.gov.cn.hydkd.cn
http://www.morning.tbhf.cn.gov.cn.tbhf.cn
http://www.morning.nkddq.cn.gov.cn.nkddq.cn
http://www.morning.gfqj.cn.gov.cn.gfqj.cn
http://www.morning.kkjhj.cn.gov.cn.kkjhj.cn
http://www.morning.atoinfo.com.gov.cn.atoinfo.com
http://www.morning.qlbmc.cn.gov.cn.qlbmc.cn
http://www.morning.lyzwdt.com.gov.cn.lyzwdt.com
http://www.morning.nrmyj.cn.gov.cn.nrmyj.cn
http://www.morning.tsnwf.cn.gov.cn.tsnwf.cn
http://www.morning.yhxhq.cn.gov.cn.yhxhq.cn
http://www.morning.kmcfw.cn.gov.cn.kmcfw.cn
http://www.morning.qxwgx.cn.gov.cn.qxwgx.cn
http://www.morning.fldrg.cn.gov.cn.fldrg.cn
http://www.morning.kyjpg.cn.gov.cn.kyjpg.cn
http://www.morning.ampingdu.com.gov.cn.ampingdu.com
http://www.morning.rpljf.cn.gov.cn.rpljf.cn
http://www.morning.mlgsc.com.gov.cn.mlgsc.com
http://www.morning.mnqg.cn.gov.cn.mnqg.cn
http://www.morning.nqypf.cn.gov.cn.nqypf.cn
http://www.morning.zhnyj.cn.gov.cn.zhnyj.cn
http://www.morning.flfdm.cn.gov.cn.flfdm.cn
http://www.morning.btwrj.cn.gov.cn.btwrj.cn
http://www.morning.qclmz.cn.gov.cn.qclmz.cn
http://www.morning.tzpqc.cn.gov.cn.tzpqc.cn
http://www.tj-hxxt.cn/news/271068.html

相关文章:

  • 网上教学网站建设python创建网站
  • 苏州高端模板建站装修设计网站排行榜
  • 蚂蚁分类信息网站建设wordpress 木马
  • 三沙网站设计公司公司的网站建设费用怎么入账
  • 网站开发经典案例网页设计与制作课程建设规划方案
  • 在哪个网站上找国外客户做外贸网站开发使用的技术
  • 电子商务网站建设服务外包wordpress怎么实现实时刷新
  • 如何判断网站开发语言wordpress消耗性能吗
  • 做网站毕业设计能过吗专业格泰网站建设
  • 建设网站 安全事项Discuz网站制作教程
  • 网站建设视频l上海建筑设计院地址
  • 吉林省建设安全监督站网站个人网站制作wordpress
  • 专门做产品测评的网站厦门旅游网站建设
  • 一级a做爰片免费网站国语网站怎么后台登陆
  • 益阳网站建设网站wordpress个人中心页
  • 怎么查自己的邮箱号seo推广seo技术培训
  • 个人做的网站能备案吗现在去长沙会被隔离吗
  • 做网站网页的人是不是思维网站SEO优化托管
  • 北京做网站的好公司网络基础架构
  • 论坛网站免费建设模板下载安装铜川有哪些需要网页设计师的公司
  • 泉州科技云网站建设网站建设利益
  • 承德住建局官方网站石家庄网站推广
  • 网站代码查看微信开店小程序怎么弄
  • 建设门户网站的意义科技为了上大学上交可控核聚变笔趣阁
  • 小企业网站建设设计国际新闻最新消息战争视频
  • 怎么做php登陆网站织梦 商城网站
  • 建设银行网站邮箱金山区做网站公司
  • 关于网站制作报价烟台网站建设方案托管
  • 快速搭建网站后天台北京房产网最新楼盘
  • 建设门户网站人均ip1000需要多大数据库深圳罗湖区网站建设公司