练习
文章平均质量分 56
lhs82612
这个作者很懒,什么都没留下…
展开
-
C练习_大数(数字字符串)相乘
#include <stdio.h> #include <stdlib.h> #include <string.h> int mul(int a[],int b[], int res[]); int str_to_arr(char *str, int *arr); #define N 100 //定义输入数字的最大位数 int main(void) { ...原创 2018-02-23 16:07:50 · 938 阅读 · 0 评论 -
C练习_双向链表操作
#include <stdio.h> #include <stdlib.h> typedef struct snode{ int val; struct snode *pre; struct snode *next; }node, *pnode; //定义双链表节点,其中多数情况使用指针pnode创建新节点 pnode creatD...原创 2018-02-23 16:16:34 · 179 阅读 · 0 评论 -
VHDL练习_基本语法
--21片选 library IEEE; USE IEEE.STD_LOGIC_1164.ALL; entity mux21 is port ( a,b: IN STD_LOGIC; s: IN STD_LOGIC; y: OUT STD_LOGIC ); END entity mux21; architecture one of mux21 is begin y<=a...原创 2018-02-23 16:23:36 · 428 阅读 · 0 评论