张赐荣,视障者,信息无障碍专家
深耕Web/PC/移动端可访问性研究与实践工作多年,对跨平台无障碍解决方案拥有深刻的独特理论和丰富的实战经验。
精通视障用户软件交互设计,致力于用专业的能力改善、提升产品可及性体验。

張賜榮

张赐荣的技术博客

博客园 首页 新随笔 联系 订阅 管理

2022年4月1日 #

摘要: 易语言DLL与C#.net互操作 本文演示了如何用易语言调用C#.NET编写的DLL,以及用C#调用易语言DLL并输出类。 易语言调用 C# 编写的 .NET 类库 办法是:将C#编写的类库注册为Com组件,然后使用易语言调用。 VS新建一个C# .net类库工程。修改项目属性: 1.勾选 生成 → 阅读全文
posted @ 2022-04-01 22:25 张赐荣 阅读(1661) 评论(0) 推荐(0)

2022年3月31日 #

摘要: // 用泛型委托实现对象的自定义比较。 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using Sy 阅读全文
posted @ 2022-03-31 22:42 张赐荣 阅读(443) 评论(0) 推荐(0)

2022年3月21日 #

摘要: C# 使用辗转相除法计算两数的最大公因数及最小公倍数 using System; namespace Program { static class Program { static int Main(string[] args) { int x = 42, y = 12; while (x!=y) 阅读全文
posted @ 2022-03-21 19:46 张赐荣 阅读(279) 评论(0) 推荐(0)

摘要: C语言循环求阶乘 #include<iostream> long factorial(int n); int main(int cmd_length, char ** cmd_args) { printf("%d\n",factorial(9)); return(0); } long factori 阅读全文
posted @ 2022-03-21 19:39 张赐荣 阅读(220) 评论(0) 推荐(0)

摘要: C语言 分别用链表、数组两种方式实现队列存储结构 用链表实现队列 // 队列是先进先出的一种数据存储结构,本例中实现了入队出队便利及清空。 #include <stdio.h> #include <malloc.h> #define NULL 0 typedef struct node { int 阅读全文
posted @ 2022-03-21 19:36 张赐荣 阅读(301) 评论(0) 推荐(0)

摘要: C语言 实现链表 链表概念 链表是一种物理存储单元上非连续、非顺序的存储结构,数据元素的逻辑顺序是通过链表中的指针链接次序实现的。 链表由一系列结点(链表中每一个元素称为结点)组成,结点可以在运行时动态生成。 每个结点包括两个部分:一个是存储数据元素的数据域,另一个是存储下一个结点地址的指针域。 相 阅读全文
posted @ 2022-03-21 16:36 张赐荣 阅读(136) 评论(0) 推荐(0)

摘要: 栈 Stack 介绍 栈(stack)又名堆栈,它是一种运算受限的线性表。限定仅在表尾进行插入和删除操作的线性表。这一端被称为栈顶,相对地,把另一端称为栈底。 向一个栈插入新元素又称作进栈、入栈或压栈,它是把新元素放到栈顶元素的上面,使之成为新的栈顶元素; 从一个栈删除元素又称作出栈或退栈,它是把栈 阅读全文
posted @ 2022-03-21 16:26 张赐荣 阅读(150) 评论(0) 推荐(0)

摘要: 用C语言实现从1+2+3+n+100 #include <stdio.h> int plus(int); int main(void) { int n = 0; n = plus(n); printf("%d\n",n); return 0; } int plus(int n) { return n 阅读全文
posted @ 2022-03-21 16:23 张赐荣 阅读(164) 评论(0) 推荐(0)

摘要: test1.c //error #include <stdio.h> int main(void) { int i = 5; const int *p = &i; printf("%d\n",*p); *p = 10; printf("%d\n",*p); return 0; } test2.c / 阅读全文
posted @ 2022-03-21 16:17 张赐荣 阅读(66) 评论(0) 推荐(0)

摘要: 定义基本类型的别名 #include <stdio.h> typedef int Integer; int main(void) { Integer a = 5,b = 10; printf("%d\n",a+b); return 0; } /* typedef不是必须声明在函数外,也可以声明在一个 阅读全文
posted @ 2022-03-21 16:11 张赐荣 阅读(261) 评论(0) 推荐(0)

感谢您访问张赐荣的技术分享博客!
博客地址:https://cnblogs.com/netlog/
知乎主页:https://www.zhihu.com/people/tzujung-chang
个人网站:https://prc.cx/