Mechanic2Tinzo

导航

2024年7月5日 #

C_THQ_CH4

摘要: //Ch 4 //选择结构和条件判断 //C语言有两种选择语句 //1.if语句 //两分支选择结构 //例:求方程根 //2.switch语句 //多分支选择结构 #include <stdio.h> #include <math.h>//程序要调用求平方根函数sqrt int main() { 阅读全文

posted @ 2024-07-05 20:09 Tinzo_Zhang 阅读(6) 评论(0) 推荐(0) 编辑

C_THQ_ch3

摘要: //用函数printf()输出数据,函数scanf()输入数据 //必须指定输入输出数据的格式,不同类型的数据指定不同的格式 //初学不必深究,重点掌握常用规则,其他随时查表 #include <stdio.h> int main(void) { int a = 1, b = 2; //函数prin 阅读全文

posted @ 2024-07-05 20:07 Tinzo_Zhang 阅读(7) 评论(0) 推荐(0) 编辑

2024年7月2日 #

2024.07.02

摘要: Verilog语法的基本概念 Verilog HDL描述的电路设计就是模块。行为&结构描述。 一. Verilog模块的基本概念 //二选一多路选择器/*单行注释*///注释 module muxtwo (out, a, b, sl); //模块 名字(端口)/**/ input a, b, sl; 阅读全文

posted @ 2024-07-02 11:27 Tinzo_Zhang 阅读(2) 评论(0) 推荐(0) 编辑