04 2021 档案

摘要:运行结果如下: 可以得出,强制转换表现为数据的“截断”。 阅读全文
posted @ 2021-04-25 14:27 昆山皮皮虾 阅读(45) 评论(0) 推荐(0) 编辑
摘要:1 #include "stdio.h" 2 struct China_city 3 { 4 char city1[100]; 5 char city2[100]; 6 struct Suzhou_town 7 { 8 char town1[100]; 9 char town2[100]; 10 } 阅读全文
posted @ 2021-04-25 10:48 昆山皮皮虾 阅读(342) 评论(0) 推荐(0) 编辑
摘要:若在读时钟周期内,每x周期内可以有y个数据读出FIFO,则FIFO深度计算公式如下: 阅读全文
posted @ 2021-04-24 23:08 昆山皮皮虾 阅读(246) 评论(0) 推荐(0) 编辑
摘要:1 /* Copyright (c) Microsoft Corporation. All rights reserved. 2 * The C Standard Library <stdbool.h> header.*/ 3 #ifndef _STDBOOL 4 #define _STDBOOL 阅读全文
posted @ 2021-04-14 14:02 昆山皮皮虾 阅读(253) 评论(0) 推荐(0) 编辑
摘要:1.插件 目前我用的插件如下: 2.launch.json { "version": "0.2.0", "configurations": [ { "name": "gcc.exe - launch", "type": "cppdbg", "request": "launch", "program" 阅读全文
posted @ 2021-04-02 17:36 昆山皮皮虾 阅读(334) 评论(0) 推荐(0) 编辑
摘要:code #include <stdio.h> int main(void) { int a[2][3][4]={ 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95,105, 110,115,120,1 阅读全文
posted @ 2021-04-02 03:00 昆山皮皮虾 阅读(198) 评论(0) 推荐(0) 编辑
摘要:code 1 #include <stdio.h> 2 int main(void) 3 { 4 int a[3][4]={ 5, 10, 15, 20, 5 25, 30, 35, 40, 6 45, 50, 55, 60}; 7 8 printf(" a=%08x\n", a); 9 print 阅读全文
posted @ 2021-04-02 02:15 昆山皮皮虾 阅读(271) 评论(0) 推荐(0) 编辑
摘要:1.code 2.运行结果 证明可以进行这些数组操作:&a+1 *a+1 *(a+1),但是这种操作却提示错误:&(a+1),错误提示信息如下: 另外一点需要注意的是: *a+1 实质为 a[0]+1 *(a+1) 实质为 a[1] 这种区别在《C和指针》的143页也有提到。 阅读全文
posted @ 2021-04-01 21:57 昆山皮皮虾 阅读(127) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示